in reply to Processing pairs of values from even-sized array
Have you tried using each itself. as in something like ...
Or possibly simpler still, but I haven't yet worked out how to perform an in-line cast of a list to an array - while (my ($k, $v) = each %{@array}) {... generates errors coz the list is being evaluated in scalar, not list, context ... JIC you were wondering:-)my $array = { @array }; while (my ($k, $v) = each %$array) { . . }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Processing pairs of values from even-sized array
by AnomalousMonk (Archbishop) on Jun 03, 2011 at 12:51 UTC | |
by Bloodnok (Vicar) on Jun 03, 2011 at 13:43 UTC | |
|
Re^2: Processing pairs of values from even-sized array
by rovf (Priest) on Jun 03, 2011 at 13:43 UTC | |
by AnomalousMonk (Archbishop) on Jun 03, 2011 at 16:53 UTC |