Do you know where your variables are? | |
PerlMonks |
Re: How to check whether a hash is empty (has no keys)?by ambrus (Abbot) |
on Sep 05, 2011 at 10:32 UTC ( [id://924183]=note: print w/replies, xml ) | Need Help?? |
Just use the name of the hash in scalar context, such as
If you want to be very explicit, you can also write or or
In Section
Seekers of Perl Wisdom
|
|