Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Converting array of hash references to hash

by tobyink (Abbot)
on Apr 22, 2013 at 09:51 UTC ( #1029834=note: print w/replies, xml ) Need Help??


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

Replies are listed 'Best First'.
Re^3: Converting array of hash references to hash
by anirudh.agarwal (Novice) on Apr 22, 2013 at 13:26 UTC
    Thanks for your reply. This one stores (key,value) as (IP, entire hash). This is again not what I want.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029834]
help
Chatterbox?
[choroba]: Yes, tried now. Login didn't show the login window at all, timed out, but worked for the second time instantly.
[choroba]: Trying the daemon log...
[choroba]: It seems very slow. But the internet is weird here in Vietnam...
[choroba]: again, stopping it and trying for the second time fixed the problem
[marto]: good morning all

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-02-22 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.