Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[davido]: date parsing is hard. The more examples you can provide of the input (within reason) and expected output, the better.
[stevieb]: agreed. That's why I said at least a half-dozen. If enough of the different formats are present, the date/time folk may not have to request more. If they do, then at least there was a decent base to start with
[stevieb]: I do date and time transformations in both Perl and Python, but not frequently enough to not have to search for the format params etc ;)

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











    Results (531 votes). Check out past polls.