Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: printing refence of hash inside a hash

by shmem (Chancellor)
on May 12, 2007 at 09:34 UTC ( [id://615055]=note: print w/replies, xml ) Need Help??


in reply to printing refence of hash inside a hash

print " $_ : ".$data->{$_}->{$_}."\n";

So perl should figure out for you which $_ to use - the one from the inner loop first, then the outer, then the inner?

for (qw(fine)) { for (qw(mess)) { print "$_ $_\n"; } } __END__ mess mess

No "fine mess".

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found