Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Help with array ref in hashes

by toolic (Bishop)
on Jan 09, 2015 at 21:23 UTC ( [id://1112804]=note: print w/replies, xml ) Need Help??


in reply to Help with array ref in hashes

Your loop looks ok, but maybe we need to see your dumper output:
use warnings; use strict; my %lengths = (c1 => {z => [1..5]}); for my $coord (keys %lengths) { for (@{ $lengths{$coord}{z} }) { print "$_\n"; } } __END__ 1 2 3 4 5

A good reference:

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found