wouldn't it be cool have a specialmy $count=0; foreach my $foo (@bar) { print $count . "-> " . $foo; $count++; }
"$~~" isn't as cool as it should beforeach my $foo (@bar) { print $~~ . "-> " . $foo; }
i know, i am a lazy yaph
or what do you think ?
In reply to foreach count variable by dreamy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |