in reply to Converting array of hash references to hash
In map you need to return pairs to fill your hash:
my %ams_ips_hash = map { $_->{'deviceIp'} => 1 } @{$ams_hosts};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting array of hash references to hash
by tobyink (Canon) on Apr 22, 2013 at 09:51 UTC | |
by anirudh.agarwal (Novice) on Apr 22, 2013 at 13:26 UTC | |
|
Re^2: Converting array of hash references to hash
by anirudh.agarwal (Novice) on Apr 22, 2013 at 13:14 UTC | |
by hdb (Monsignor) on Apr 22, 2013 at 13:22 UTC |