in reply to How to loop through hash of array and convert into hash with key and value.
my $VAR2; for my $h (@$VAR1){ $VAR2->{ $h->{name} } = $h; } print Dumper \$VAR2;
"From there to here, from here to there, funny things are everywhere." -- Dr. Seuss
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to loop through hash of array and convert into hash with key and value.
by Sami_R (Sexton) on Dec 28, 2019 at 11:15 UTC |