Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: setting hash keys by array

by blssu (Pilgrim)
on Sep 09, 2002 at 17:31 UTC ( #196365=note: print w/ replies, xml ) Need Help??


in reply to setting hash keys by array

sub nested { return ( shift, (@_) ? { nested(@_) } : 1 ) } my %hash = nested(qw(red green brown));


Comment on Re: setting hash keys by array
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-05-23 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (465 votes), past polls