Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Possible pitfall with Slicesby Fastolfe (Vicar) |
on Nov 07, 2000 at 00:59 UTC ( [id://40240]=note: print w/replies, xml ) | Need Help?? |
A better way of doing this:
Thus we don't have to worry about being sure the values of the hash are all present and what-not. Specify an empty list on the right-hand-side to set the values all to undef, and just use exists to see if it's there. It's also slightly faster (but not much).
In Section
Seekers of Perl Wisdom
|
|