Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Referencing to a hash inside a hash of hashes.

by TheoPetersen (Priest)
on Aug 08, 2001 at 00:50 UTC ( #102906=note: print w/ replies, xml ) Need Help??


in reply to Referencing to a hash inside a hash of hashes.

Change the assignment of the ODIR key to a referencing operation:

$hash{'myhash'}->{ODIR} = \%direc;
Then dereference it as you had the 'myhash' key:
$f = $hash{'myhash'}->{ODIR}->{'this'}


Comment on Re: Referencing to a hash inside a hash of hashes.
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Referencing to a hash inside a hash of hashes.
by JPaul (Hermit) on Aug 08, 2001 at 00:56 UTC
    Aha!
    Many thanks Theo,

    JP -- Alexander Widdlemouse undid his bellybutton and his bum dropped off --

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2015-07-31 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls