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}
In reply to Re: printing refence of hash inside a hash
by shmem
in thread printing refence of hash inside a hash
by opensourcer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |