Is there a special variable that tracks what $i is tracking in that example?No. If you want that, use a C-style for loop. A reason not to have an special variable with an interation counter: how should that work with nested loops?
In reply to Re^2: Perlplexation - foreach shoulda Known
by JavaFan
in thread Perlplexation - foreach shoulda Known
by raybies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |