Syntactic Confectionery Delight | |
PerlMonks |
Re: Global vs. local?by moritz (Cardinal) |
on May 28, 2009 at 09:22 UTC ( [id://766612]=note: print w/replies, xml ) | Need Help?? |
You can replace your entire switch/case with this code:
And you're done. This will create a closure, ie a subroutine that's "closed" over $j.
In Section
Seekers of Perl Wisdom
|
|