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