Perl: the Markov chain saw | |
PerlMonks |
Re^3: Next from inner loop only works "most of the time"by Anonymous Monk |
on May 18, 2021 at 23:52 UTC ( [id://11132721]=note: print w/replies, xml ) | Need Help?? |
Nonetheless, "for(each) my $var ..." is what's recommended, and with very good reason. For one thing, inner loops (or the code which they contain) usually needs to be able to refer separately to the loop-indexes of one or more of the outer loops. This achieves that without polluting the namespace.
In Section
Seekers of Perl Wisdom
|
|