> -----Original Message----- > From: OROSZI Balázs [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 10:07 AM > To: [EMAIL PROTECTED] > Subject: determining variable types > > > Hello! > > Is it possible to get the type of a variable at run time > (hash, array, scalar)? > Suppose I have $var which may be a ref to a hash, or a ref to > an array or a > scalar (maybe a ref to it). > > Should I try to hack it out from the address > (the weird thing, for example ARRAY(0x...), SCALAR(0x...))? > Or is there any other way? > > Please, answer as soon as you can. I need to know this in short time. > I greatly apreciate any help. > Thank you. > -- > Greetings, > Balázs >
read the manpage about the 'ref' function perldoc -f ref -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]