Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Text::CSV

by TStanley (Canon)
on Jan 11, 2001 at 02:27 UTC ( [id://51001]=modulereview: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use Text::CSV;
    
  2. or download this
    my $input="input.csv";
    my $output="output.txt";
    ...
    open(INFILE,$input) || die "Can't open file $input";
    open(OUTFILE,">$output") || die "Can't open file $output";
    open(TRASH,">$trash") || die "Can't open file $trash";
    
  3. or download this
    while (<INFILE>) {
    if (/"X"/) {   #The trash data has these 3 characters in it
    ...
      }
    }
    }
    
  4. or download this
    close INFILE;
    close OUTFILE;
    close TRASH;
    
    unlink $trash;
    

Log In?
Username:
Password:

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

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

    No recent polls found