Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: Answer: how do I use a hash of hashes reference to a function ?

by Fastolfe (Vicar)
on Sep 22, 2000 at 02:31 UTC ( #33578=note: print w/replies, xml ) Need Help??


in reply to Re: how do I use a hash of hashes reference to a function ?
in thread how do I use a hash of hashes reference to a function ?

Sorry, I neglected to read your title very well and did not take this one step further:
%hash = ( one => { a => 10, b => 20 }, two => { c => 30, d => 40 } ); &function(\%hash); sub function { my $hash = shift; $hash->{two}->{d} = 50; # changes 'd' }
You can go as deep as you want here with hashes of hashes of hashes. Hope that helps...
  • Comment on RE: Answer: how do I use a hash of hashes reference to a function ?
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-11-27 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?