Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2017-11-20 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (284 votes). Check out past polls.

    Notices?