Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Function that accepts both hashes/arrays and hashrefs/arreyrefsby Porculus (Hermit) |
on Jun 19, 2009 at 18:38 UTC ( [id://773114]=note: print w/replies, xml ) | Need Help?? |
That's not a great way to do it; your code will, for example, think it's got an array reference if someone passes the string "This is NOT an array(really!)" as an argument. A better approach is to use the ref function.
In Section
Seekers of Perl Wisdom
|
|