Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: array reference as hash value

by davorg (Chancellor)
on Jul 22, 2009 at 10:15 UTC ( #782238=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mwarnings -e '%h = { foo => [ 1 .. 3] }'
    Reference found where even-sized list expected at -e line 1.
    
  2. or download this
    my %hash = (
                  key1 => [a1_ref,a1_ref],
                  key2 => [a3_ref,a4_ref]
               );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://782238]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2018-06-21 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (118 votes). Check out past polls.

    Notices?