|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: Perlplexation - foreach shoulda Knownby Riales (Friar) |
| on Apr 13, 2012 at 19:58 UTC ( #964980=note: print w/ replies, xml ) | Need Help?? |
|
Sort of on the same topic (but maybe a bit in the opposite direction), does anybody know if there is a special variable that keeps count of which iteration in a for loop it's on? Say I want to do something to every third element:
Is there a special variable that tracks what $i is tracking in that example?
In Section
Meditations
|
|