Michael Kavanagh wrote:
>
> Hi there,
Hello,
> This is probably a simple one...
>
> in a loop like this:
>
> for (@answer) {
> #do something ...
> }
>
> I understand that for each iteration of the loop, $_ contains the value of
> $answer[current iteration].
> But is there a default v
I don't think there is one. You can maintain a counter for this purpose
though.
my $counter;
for (@answer) {
#do something ...
print "On element index $counter\n";
$counter++;
}
John (Ex OUP...)
-Original Message-
From: KAVANAGH, Michael [mailto:[EMAIL PROTECTED]