![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Test Presence of Data in Hashby davorg (Chancellor) |
on Jul 20, 2009 at 20:41 UTC ( [id://781760]=note: print w/replies, xml ) | Need Help?? |
This doesn't address the interesting questions you've raised about hashes. I'm sure that others will have good explanations of that, but I just wanted to point out that the best way to check if a hash contains any data is to use the keys function. In scalar context keys will return the number of keys defined in the hash.
In Section
Seekers of Perl Wisdom
|
|