"Christopher J. Madsen" wrote: > Why not use an explicit counter instead? Something like > > foreach $item $index (@array) { > > (This is a syntax error in Perl5.) Why not use an explicit perl5 counter? my $index; foreach $item (@array){ $index++; print $item, " is at index ", $index, "\n"; }
- RFC 120 (v2) Implicit counter in for statements, pos... Perl6 RFC Librarian
- Re: RFC 120 (v2) Implicit counter in for statem... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit counter in for st... Glenn Linderman
- Re: RFC 120 (v2) Implicit counter in for st... David L. Nicol
- Re: RFC 120 (v2) Implicit counter in fo... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit counter i... Jonathan Scott Duff
- Re: RFC 120 (v2) Implicit coun... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit ... Jonathan Scott Duff
- Re: RFC 120 (v2) Impli... Christopher J. Madsen
- Re: RFC 120 (v2) Implicit ... Ariel Scolnicov
- Re: RFC 120 (v2) Impli... Mike Pastore
- Re: RFC 120 (v2) Impli... David L. Nicol
- Re: RFC 120 (v2) Impli... Johan Vromans
- Re: RFC 120 (v2) Impli... Buddha Buck