Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Understading array of hashes

by choroba (Canon)
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";
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030119]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-11-27 03:36 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (717 votes), past polls