Re: Final draft of RFC 120: Implicit counter in for statements

2000-09-18 Thread Bart Lateur
On Mon, 18 Sep 2000 23:11:28 +0100, John McNamara wrote: > foreach $item (@array) { > print $item, " is at index ", $#, "\n"; > } Maybe I'm a little late... But I just thought how neat it would be if this would also extend to map() and grep(). Remember, officially the processing

Final draft of RFC 120: Implicit counter in for statements

2000-09-18 Thread John McNamara
The following is intended as a draft of the final draft of RFC 120 "Implicit counter in for statements, possibly $#". It includes summarised alternatives based on discussions in this list. It is not intended that this post should revive these discussions. It is a chance for the co