Just another Perl shrine | |
PerlMonks |
Re^2: Testing Hash with empty value in HoHby Limbic~Region (Chancellor) |
on Jun 15, 2005 at 12:40 UTC ( [id://466897]=note: print w/replies, xml ) | Need Help?? |
salva,
I agree with what you have said and how you have used your code, but for clarity believe you should add in scalar context. It may not be obvious to someone unfamiliar with Perl's DWYMery that in list context you get the list of values and in scalar context you only get the count. Cheers - L~R
In Section
Seekers of Perl Wisdom
|
|