|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
(tye)Re: passing hashes and hash referenceby tye (Sage) |
| on Apr 20, 2001 at 17:19 UTC ( [id://74238]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
"HASH" eq ref($ref) is a fragile test and should be replaced with UNIVERSAL::isa($ref,"HASH"). Update: The reason the original test is fragile is that it will make your code refuse to work on a hash if it happens to be blessed. Update2: Changed "HASH" eq ref to "HASH" eq ref($ref) to avoid confusion. Thanks, BMaximus. - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||