Perl-Sensitive Sunglasses | |
PerlMonks |
Re: How do I determine the type of a reference?by choocroot (Friar) |
on Jun 19, 2002 at 13:33 UTC ( [id://175666]=note: print w/replies, xml ) | Need Help?? |
Use the ref function. It returns false if its argument is not a reference, and otherwise returns a string describing the referenced object. For example, in the case of an unblessed hash, it returns the string "HASH".
In Section
Seekers of Perl Wisdom
|
|