G
Googy
Hi,
I am writing a program using AutoLoader and it has to simulate 10's of
sub routines, the problem I have is every simulated function has
different number of arguments and different number of argument types in
different orders.
Is there any method or sub routines to know the data type of the
argument ?
I know there are functions like is_array, is_hash, is_object, ... and
ref (), but I think these are only for reference types(please correct
me if I am wrong), simply put I need a routine which can tell the data
type of a variable like array, hash, vector.
Thanks.
I am writing a program using AutoLoader and it has to simulate 10's of
sub routines, the problem I have is every simulated function has
different number of arguments and different number of argument types in
different orders.
Is there any method or sub routines to know the data type of the
argument ?
I know there are functions like is_array, is_hash, is_object, ... and
ref (), but I think these are only for reference types(please correct
me if I am wrong), simply put I need a routine which can tell the data
type of a variable like array, hash, vector.
Thanks.