Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How do I determine the type of a reference?by Mr. Muskrat (Canon) |
on Sep 18, 2003 at 16:39 UTC ( [id://292445]=note: print w/replies, xml ) | Need Help?? |
The Scalar::Util module provides a function reftype for this. It's somewhat more robust than the built-in ref function.
In Section
Seekers of Perl Wisdom
|
|