in reply to array of hash arrays, right?
Slightly more verbose, but perhaps easier for you to follow:for my $h(@ahoa) { for (keys(%$h)){ print "$_ => "; print "@{$h->{$_}}\n"; } print "\n"; }
Hmmm .... perhaps it's not any easier to follow.for my $h (@ahoa) { my %deref = %$h; for my $k (keys(%deref)) { print "$k=> "; my @deref = @{$deref{$k}}; print "@deref\n"; } print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array of hash arrays, right?
by tamaguchi (Pilgrim) on Aug 01, 2006 at 11:47 UTC | |
by rodion (Chaplain) on Aug 01, 2006 at 12:23 UTC |