Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: The future of Text::CSV_XS - TODO

by Tux (Abbot)
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 meditating upon the Monastery: (6)
As of 2016-10-01 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.