Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Export CSV v2

by Perl3r (Initiate)
on Oct 09, 2012 at 00:41 UTC ( #997904=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $csv = Text::CSV->new( { binary => 1, auto_diag => 2, } )
    or die "Cannot use CSV: " . Text::CSV->error_diag();
    $csv->eol ("\x0d\x0a");
    ...
    for my $csvFile (@ARGV) {
        print "\nProcesing file $csvFile ...\n";
        open my $csvfh, '<', $csvFile or die "Unable to open $csvFile: $!"
    +;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997904]
help
Chatterbox?
[Eily]: I just wrote a oneliner to solve a (non perl) colleague's problem, and it worked on the first try
[Eily]: and he wasn't impressed
1nickt adds gingersnaps to the platter on the sideboard.
[Eily]: sure it was a pretty standard one liner (of the $h{$1} = $2 if /regex/; END { pp \%h; } variety), but he's not supposed to know that!
[Eily]: what's the point of writing perl if people aren't impressed :P

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-04-26 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (482 votes). Check out past polls.