http://www.perlmonks.org?node_id=1029834


in reply to Re: Converting array of hash references to hash
in thread Converting array of hash references to hash

Personally I'd...

my %ams_ips_hash = map { $_->{'deviceIp'} => $_ } @{$ams_hosts};
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name