Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Hash of Hash of Hash of ...

by tlm (Prior)
on Jul 12, 2005 at 00:06 UTC ( #474135=note: print w/replies, xml ) Need Help??


in reply to Hash of Hash of Hash of ...

Check out this snippet by merlyn.

the lowliest monk

Replies are listed 'Best First'.
Re^2: Hash of Hash of Hash of ...
by simonm (Vicar) on Jul 12, 2005 at 16:12 UTC
    There are also several pre-written implementations of this on CPAN. My Data::DRef module has functions to get and set values based on multiple-key lists like you're working with:
    use Data::DRef qw( set_value_for_keys ); set_value_for_keys( \%big_hoh, $data, @key_list );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2020-05-30 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (172 votes). Check out past polls.

    Notices?