Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Referencing a HoH

by Aristotle (Chancellor)
on May 07, 2003 at 17:41 UTC ( [id://256321]=note: print w/replies, xml ) Need Help??


in reply to Referencing a HoH

That is to be expected. Your top hash contains references to hashes; you need to dereference them first. To do so you need a nested loop:
foreach my $key (keys %hshFoo) { foreach my $subkey (keys %{$hshFoo{$key}}) { print "$key/$subkey => $hshFoo{$key}{$subkey}\n"; } }
See perlref, perllol and perlreftut.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Referencing a HoH
by P0w3rK!d (Pilgrim) on May 07, 2003 at 17:50 UTC
    I had the right idea. I botched this when I did it. Thank you :)

Log In?
Username:
Password:

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

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

    No recent polls found