Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
P is for Practical
 
PerlMonks  

Re: The future of Text::CSV_XS - TODO

by Tux (Monsignor)
on May 30, 2007 at 08:17 UTC ( #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
Node Status?
node history
Node Type: note [id://618129]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-04-17 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (454 votes), past polls