Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 musing on the Monastery: (8)
As of 2016-06-29 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (378 votes). Check out past polls.