Perl: the Markov chain saw | |
PerlMonks |
Re: declaring a common loop variableby AnomalousMonk (Archbishop) |
on Feb 28, 2017 at 22:24 UTC ( [id://1183206]=note: print w/replies, xml ) | Need Help?? |
Further to 1nickt's post: pritesh_ugrankar: Note that the local scoping (or aliasing) of a for-loop iteration variable is very strong and holds even if you do not declare a separate lexical for each loop: (But yes, certainly use different variable names as a sanity-saver!) Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|