Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Sort CSV file within Excel based on specific column

by Tux (Abbot)
on Oct 12, 2012 at 06:02 UTC ( #998602=note: print w/ replies, xml ) Need Help??


in reply to Re: Sort CSV file within Excel based on specific column
in thread Sort CSV file within Excel based on specific column

When using auto_diag => 2, or die is unneeded. It will happen before inside Text::CSV or Text::CSV_XS, as they use the underlying print.

for my $csvLine (@csvLines) { $csv->print( $csvfh, $csvLine ) or die $!; } -> $csv->print ($csvfh, $_) for @csvLines;

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: Sort CSV file within Excel based on specific column
by Kenosis (Priest) on Oct 12, 2012 at 15:30 UTC

    Thank you, Tux. Have modified the script.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2016-07-28 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (255 votes). Check out past polls.