in reply to Converting array of hash references to hash
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting array of hash references to hash
by anirudh.agarwal (Novice) on Apr 22, 2013 at 13:33 UTC | |
|
Re^2: Converting array of hash references to hash
by anirudh.agarwal (Novice) on May 01, 2013 at 12:54 UTC | |
by LanX (Saint) on May 01, 2013 at 13:12 UTC | |
|
Re^2: Converting array of hash references to hash
by anirudh.agarwal (Novice) on May 01, 2013 at 09:27 UTC | |
by anirudh.agarwal (Novice) on May 01, 2013 at 09:36 UTC |