more useful options | |
PerlMonks |
Re^2: Global vs. local?by moritz (Cardinal) |
on May 28, 2009 at 09:32 UTC ( [id://766615]=note: print w/replies, xml ) | Need Help?? |
Whoa! Don't. If you tell people what not to use, also tell them what to use instead ;-) here: perl 5.10 introduces given/when, see perl5100delta. Short example:
It's not needed here, because a closure is much better, but in general it's surely good to know.
In Section
Seekers of Perl Wisdom
|
|