in reply to Mapping an array to a string
Hi chuck_norris
Did you want to do something like this
use strict; my @AoH = ( {'Lead'=>'fred','Friend'=>'barney'}, {'Lead'=>'george','Wife'=> 'jane','Son'=>'elroy'} ); my $string = \@AoH; for my $href ( @$string) { for my $role ( keys %$href ) { print "$role:$href->{$role}\n"; } }
Punitha
|
---|
In Section
Seekers of Perl Wisdom