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

Re^3: How to set variable names using Text::CSV?

by Tux (Canon)
on Oct 16, 2009 at 06:47 UTC ( [id://801508]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my @names = @{$csv->getline ($io)}; # note the @{...}
      $csv->column_names (@names);
    
  2. or download this
      my @names = @{$csv->getline ($io)}; # note the @{...}
      $csv->column_names ( [ @names ] );  # extra whitespace for attention
    
  3. or download this
      $csv->column_names ($csv->getline ($io));
    
  4. or download this
      my @names = $csv->column_names ();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-20 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found