> my @a = ( 'g' .. 'k' )
[g h i j k]
> @a.kv
(0 g 1 h 2 i 3 j 4 k)
> for @a.kv { say "Value $^v has index $^i" }
Value g has index 0
Value h has index 1
Value i has index 2
Value j has index 3
Value k has index 4
- for loop index question ToddAndMargo
- Re: for loop index question Patrick R. Michaud
- Re: for loop index question Todd Chester
- Re: for loop index question Elizabeth Mattijsen
- Re: for loop index question Todd Chester
- Re: for loop index question yary
- Re: for loop index question yary
- Re: for loop index question Todd Chester
- Re: for loop index question Todd Chester
- Re: for loop index question Todd Chester
- Re: for loop index question Richard Hainsworth
- Re: for loop index question Todd Chester
- Re: for loop index question Andrew Kirkpatrick
- Re: for loop index question Todd Chester
- Re: for loop index question Richard Hainsworth
- Re: for loop index question Todd Chester
