Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl-ish way to create hash from array

by PrakashK (Pilgrim)
on Jul 09, 2013 at 20:58 UTC ( #1043376=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # figure out the column headings from the first line
    my @csvColumns = ();
    foreach my $colName (@{$csvParser->getline($csvHandle)}) {
        push @csvColumns, $colName;
    }
    
  2. or download this
    # figure out the column headings from the first line
    my @csvColumns = @{$csvParser->getline($csvHandle)};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-10-01 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (386 votes), past polls