Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: hash of hashes

by 2teez (Priest)
on Apr 18, 2013 at 04:00 UTC ( #1029248=note: print w/ replies, xml ) Need Help??


in reply to hash of hashes

Or simply do like so:

use warnings; use strict; use feature 'say'; my $ret = { room1 => { tag => 5, status => 'lazy', id => 5823 }, room2 => { tag => 10, status => 'active', id => 1234 }, }; for my $room ( sort keys $ret ) { say $room, ' : ', join "\t" => %{ $ret->{$room} }; }

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re: hash of hashes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-07-07 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls