in reply to NEXT statement in for loop
I thought it will take first value of $pic{R0}, which is 5 but it is taking $pic{R0} second value.
To emphasize something that Corion pointed out in his answer: Hashes are unordered. There is no "first" or "second" value. If you need things in order, you should probably put them in an array, not a hash.
my %pic = ( R0 => [ 5, 4 ], R2 => [ 3, 2 ] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: NEXT statement in for loop
by Anonymous Monk on Jun 06, 2016 at 05:53 UTC | |
by Athanasius (Archbishop) on Jun 06, 2016 at 06:07 UTC | |
by Anonymous Monk on Jun 06, 2016 at 09:07 UTC |