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

Re: Understading array of hashes

by choroba (Chancellor)
on Apr 23, 2013 at 12:16 UTC ( #1030119=note: print w/replies, xml ) Need Help??


in reply to Reaped: Understading array of hashes

You were almost there. You just need to really create the hash of hashes, not just look at it (line 39):
undef $hash{$_->{'type'}}{ $_->{'name'} } for @$array;
And, when printing out, the undefs are not interesting, so leave them out (line 45):
print " $k2\n";
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Understading array of hashes
by AnomalousMonk (Canon) on Apr 23, 2013 at 19:53 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030119]
help
Chatterbox?
[stevieb]: 16.96 hours of runtime of a Raspberry Pi on a 12v, 7.2Ah battery :) Now to watch now long it takes to recharge the battery completely with my 18v solar cells in the sun :)
[stevieb]: my high-range estimate was 18 hours

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2017-03-26 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.