Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029248]
[Corion]: This is vaguely inspired by that list of "nasty" strings, which I'd like to replace among HTTP parameters, just to see whether the application crashes, but also for easy downloading of a list of URLs etc
[Corion]: Maybe I'll just conoct something using Algorithm::Permute to create an (OO) generator for such requests, or a simple function.
[Corion]: For testing I imagine one would want to test a random sampling of such "bad"/"unexpected" requests, while for downloading, one would want to generate them all in order, but not necessarily as a huge list
[Corion]: s/Algorithm:: Permute/Algorithm ::Loops/

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-01-16 15:42 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (151 votes). Check out past polls.