If you haven't yet, you might want to look into a CSV parser. I think that
if you configure one of those to split on whitespace, that should give you
the results you want.

(Now with added reply all.)

On Fri, 14 Jul 2017, 08:42 Mark Carter, <alt.mcar...@gmail.com> wrote:

> Is there a function that can decompose a string to an array separated by
> whitespace, but also respecting double quotes, and prefereably escape
> sequences?
> So, for example:
> my $d="hello   \"cruel world\"";
> something-something($d) ; => ("hello", "cruel world")

Reply via email to