in reply to Not quite a simple split
How about, my @stuff = grep {defined} split /\s+(?:"([^"]*)")?\s*/; if you can ignore or filter out some undef elements. Captured chunks from the split regex get into the resulting list.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Not quite a simple split
by John M. Dlugosz (Monsignor) on Feb 01, 2004 at 23:20 UTC | |
by Zaxo (Archbishop) on Feb 01, 2004 at 23:36 UTC | |
by John M. Dlugosz (Monsignor) on Feb 02, 2004 at 05:23 UTC |