Does anybody know if Perl retains the index for a current line? Maybe something like the $; variablefor my $i ( @list ) { print $i; # Now I want to know what number item I'm at }
10x,
perchance
--- Half A World Away
In reply to Index in For loop by perchance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |