develooper Front page | perl.beginners | Postings from August 2009

Re: Regular expression help

Thread Previous
Uri Guttman
August 25, 2009 23:30
Re: Regular expression help
Message ID:
>>>>> "DT" == Dave Tang <> writes:

  DT> a,b,c,d,e,"f1,f2","g1,g2" which spoil my split(/,/).

  DT> Could someone provide some guidance?

use a CSV module. parsing csv files is a pain with regexes (even if
doable). there are very stable and fast csv modules on cpan so get one
and use it.


Uri Guttman  ------  -------- --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ---- ---------

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About