in reply to Re: foreach count variablein thread foreach count variable
An alternative is:
my @foo = qw(one two three four); for (0..$#foo) { print "$_ : $foo[$_] \n"; } [download]
Andy.