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
In reply to Re: How to loop through hash of array and convert into hash with key and value.
by NetWallah
in thread How to loop through hash of array and convert into hash with key and value.
by Sami_R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |