in reply to Using foreach to iterate through a hash in an array
etc. (in no particular order)."00:20:00", "a", "10:00:00", "b", "00:00:00", "a",
To create an array of hashes, use references:
my @bla = (\%hash, \%hash2);
You can then iterate with dereference
for (keys %{ $bla[0] }) {
or, in recent Perls,
for (keys $bla[0]->%*)
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using foreach to iterate through a hash in an array
by Anonymous Monk on Aug 30, 2017 at 11:36 UTC | |
by AnomalousMonk (Archbishop) on Aug 30, 2017 at 15:08 UTC |