However, this does print -1:my %hash = (); # empty hash print "empty!" unless (%hash);
So maybe your hash isn't actually empty?my @a = keys(%hash) print "$#a\n";
In reply to Re: How to test for empty hash?
by haj
in thread How to test for empty hash?
by scareduck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |