Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: hash problem

by simonm (Vicar)
on Jan 12, 2005 at 20:33 UTC ( [id://421757]=note: print w/replies, xml ) Need Help??


in reply to Re: hash problem
in thread hash problem

Seconded.

If you'd prefer not to roll your own, I've got a similar function in my Data::DRef module on CPAN:

use Data::Dref qw( set_value_for_keys ); my %hash; set_value_for_keys( \%hash, 1, qw(a b c d) ); set_value_for_keys( \%hash, 1, qw(a c d e) );

There's also a corresponding get_value_for_keys function, if needed...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-24 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found