Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Text::CSV

by TStanley (Canon)
on Jan 11, 2001 at 02:27 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-11-29 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?