In map you need to return pairs to fill your hash:
my %ams_ips_hash = map { $_->{'deviceIp'} => 1 } @{$ams_hosts};
In reply to Re: Converting array of hash references to hash
by hdb
in thread Converting array of hash references to hash
by anirudh.agarwal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |