Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^13: Processing CSV File

by Tux (Abbot)
on Oct 05, 2012 at 09:53 UTC ( #997424=note: print w/replies, xml ) Need Help??

in reply to Re^12: Processing CSV File
in thread Processing CSV File

  • When using Text::CSV_XS or Text::CSV do not pass eol on parser objects when eol is withing default realms. That is all handled automatically.
  • Then "<:crnl" will not be required at all.
  • If needing CSV parsing and CSV writing, make twoCSV objects where only the writing object defines eol
  • Use auto_diag!
# No eol and auto_diag > 1 will cause die's on error (with diagnostics +) my $csv = Text::CSV_XS->new ({ binary => 1, auto_diag => 2 });

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^14: Processing CSV File
by Kenosis (Priest) on Oct 05, 2012 at 16:38 UTC

    Excellent, Tux, thank you. Appreciate you looking at this code, and will make the auto_diag change.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997424]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-11-23 18:53 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (337 votes). Check out past polls.