You can also answer your question w/o creating a hash:
$ams_ip = "" unless grep { $ams_ip eq $_->{'deviceIp'} } @{$ams_hosts} +;
but this would be computationally more expensive if you need to perform this query many times.
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |