![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Refactoring Perl #6 - Split Temporary Variableby pKai (Priest) |
on Aug 16, 2007 at 18:52 UTC ( #633155=note: print w/replies, xml ) | Need Help?? |
Regarding your for $i "possible exception" example: If one thinks the variable can be used after the loop, containing something sensible set inside the loop, you will be bitten by perl which will arrange to have made your variable "implicitly local to the loop and regains its former value upon exiting the loop." (c/f perldoc perlsyn)
In Section
Meditations
|
|