Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: The future of Text::CSV_XS - TODO

by Tux (Canon)
on May 30, 2007 at 08:17 UTC ( [id://618129]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $csv = Text::CSV_XS-New ({ binary => 1 });
      while (<>) {
          $csv->parse ($_);
          my @fields = $csv->fields ();
    
  2. or download this
      use IO::Handle;
      my $csv = Text::CSV_XS->new ({ binary => 1, eol => $/ });
      while (my $row = $csv->getline (*ARGV)) {
          my @fields = @$row;
    
  3. or download this
      my $csv = Text::CSV_XS->new ({ binary => 1, eol => $/ });
      open my $io, "<", $file or die "$file: $!";
      while (my $row = $csv->getline ($io)) {
          my @fields = @$row;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found