Syntactic Confectionery Delight | |
PerlMonks |
Re: How to compare an empty key with another empty key in associative arrayby Rudolf (Pilgrim) |
on Oct 24, 2012 at 11:50 UTC ( [id://1000615]=note: print w/replies, xml ) | Need Help?? |
$b = {}; is not an associative array. An array containing other arrays may look something like this:
To see if an array is empty, you can check it's scalar value for contents.
UPDATED: Associative array is considered a hash in Perl, (thanks choroba),
In Section
Seekers of Perl Wisdom
|
|