in reply to How to loop through hash of array and convert into hash with key and value.

A more "traditional" approach:
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

  • Comment on Re: How to loop through hash of array and convert into hash with key and value.
  • Download Code

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

    Great solutions, thank you so much.