in reply to Re: Hash of array.
in thread Hash of array.
push @array, $hash{$_} for keys %hash;
That will work (as shown) but to me seems very unwieldy when we could use values instead:
push @array, values %hash;
Does using for and keys buy you anything here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hash of array.
by Laurent_R (Canon) on Feb 09, 2017 at 13:45 UTC |