Sven <> wrote:
> I need to replace all commas(,) on every lines EXCEPT those that occur
^^^^^^
> within doublequotes (",")
perldoc -q EXCEPT
How can I split a [character] delimited string except when inside
[character]? (Comma-separated files)
You are expected to check the Perl FAQ before posting to the
Perl newsgroup.
After you get the fields split, use join() to put them back
together with some other separator.
Or, better yet, use a module that understands the CSV format.
http://search.cpan.org/search?query=CSV&mode=all
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas