On Mon, 2007-09-17 at 13:34 -0700, Jonathan Lang wrote: > Most of the replies have suggested using 'split( /\|/, $line )'. > However, this ignores a potentially important aspect of common cvs > file formats - well, important to me, anyway - which is the > interaction between quotes, field delimiters, and newlines:
In this case I would use: http://search.cpan.org/~hmbrand/Text-CSV_XS-0.31/CSV_XS.pm I can then set the sep_char in new. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/