Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Creating hash of arrays (in a faster way)

by Corion (Pope)
on Nov 01, 2013 at 09:57 UTC ( #1060732=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $row ( @hash{ @cols }) {
        push @$row, shift @values
    }
    
  2. or download this
    sub alias { \@_ };
    
    ...
    
        print Dumper \%hash;
    }
    
  3. or download this
    
    {
    ...
    }
    
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-03 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls