Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Weird function calling...by robin (Chaplain) |
on Jan 07, 2002 at 23:25 UTC ( [id://136900]=note: print w/replies, xml ) | Need Help?? |
If you rewrite the loop as:
then you avoid the problem altogether, and you also avoid having to drop the whole key list onto the stack and dereference the hash needlessly. I think each is underused, and is a better idiom for many loops which use keys.
In Section
Seekers of Perl Wisdom
|
|