in reply to Re^6: csv with parens that include commas
in thread csv'ish string with parens that include commas
Yes it was (the code proves it).
Was it helpful or necessary to call my question NO-GO?I use perl in scientific/engineering work, so I am sorry if I am not properly describing CSV.
Yes. CSV is a known format and there are standard tools for dealing with it.
Much like dealing with XML-ish data, using standard XML tools is a no-go situation. They will insist on doing their job (like abort because of XML syntax errors) and not DWIM.
Heck, the following will work for the original question, but it won't for CSV (or the real (and undefspecified) problem)
$ perl -le"print for split /,/, q!sue,fred,x(mary,jane)!, 3" sue fred x(mary,jane)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: csv with parens that include commas
by BrowserUk (Patriarch) on Dec 05, 2010 at 22:55 UTC | |
by Anonymous Monk on Dec 06, 2010 at 00:02 UTC |