in reply to Re^2: Splitting a line on just commas
in thread Splitting a line on just commas
or@values = grep{defined} @values; @values = grep{$_ ne ''} @values;
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: /(?:\,)|(\".*?\")/@values = grep{defined && $_ ne ''} @values;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Splitting a line on just commas
by ikegami (Patriarch) on Jun 14, 2010 at 18:05 UTC | |
by deMize (Monk) on Jun 14, 2010 at 18:17 UTC | |
by ikegami (Patriarch) on Jun 14, 2010 at 19:13 UTC | |
by ikegami (Patriarch) on Jun 14, 2010 at 19:15 UTC |