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
In reply to Re: Not quite a simple split
by Zaxo
in thread Not quite a simple split
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |