more useful options | |
PerlMonks |
Re^3: Splitting a line on just commasby deMize (Monk) |
on Jun 14, 2010 at 17:51 UTC ( [id://844684]=note: print w/replies, xml ) | Need Help?? |
Response: I was about to say, you might want to remove all the undefined created by the unmatched parens, before removing the blank fields.
or Again, I would not use this method. It's not good to remove blank string values. As for the equal footing, would this be any less equal: /(?:\,)|(\".*?\")/ Update: I did forget to include the trailing comma after the quotes, but I still wouldn't use it: /\,|(?:(\".*?\")\,)/ Demize
In Section
Seekers of Perl Wisdom
|
|