Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 studying the Monastery: (2)
As of 2022-07-05 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?