Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Tux (Monsignor)
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


Comment on Re^2: Sort CSV file within Excel based on specific column
Select or Download Code
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 examining the Monastery: (14)
As of 2015-07-02 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls