in reply to Re^5: Text::CSV_XS and "binary" mode
in thread Text::CSV_XS and "binary" mode

Please don't promote the use of <INFILE> when dealing with embedded newlines and such. The OP correctly uses Text::CSV_XS to deal with those. split () is NOT an option here. You code will break on the first newline that is part of a field.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^7: Text::CSV_XS and "binary" mode
by Marshall (Canon) on Jan 28, 2009 at 01:12 UTC
    From problem statement, the 2 lines given don't have embedded new lines. Didn't realize that was part of the requirement. As you point out, that certainly changes things if that is true!