Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How to assign an array to a value in hash?

by matija (Priest)
on Apr 22, 2004 at 12:00 UTC ( #347314=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @{$new_hash{$some_key1}} = @some_array1; # extra {} are for clarity
    
  2. or download this
      my @value_array = @{$new_hash{$_}};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-01-25 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (69 votes). Check out past polls.

    Notices?