Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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'}

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?
[Lady_Aleena]: shmem, thanks. I'm am way out of practice.
[shmem]: perl -lE '@foo = (0..3);@bar = (4..7); push @foo,@bar; say for @foo'
[Lady_Aleena]: shmem, I feel like an idiot for forgetting something so basic.
shmem puts a big cauldron of "silly con charme" on the table in the refectorium
[reisinge]: 'push @foo, @bar' is the same as '@foo = (@foo ,@bar)' ?
[shmem]: yes, at least for the result in @foo

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-04-27 11:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.