On Sun, Jul 16, 2017 at 7:41 PM, ToddAndMargo <toddandma...@zoho.com> wrote:
> my $x='ls -al "Program Files" "Moe Curly Larry"'; > > Desired result: > my @y; > $y[0] = 'ls'; > $y[1] = '-la'; > $y[2] = 'Program Files'; > $y[3] = 'Moe Curly Larry'; > This was just discussed a few days ago, under the subject "Is there a bash/shlex-like processor with double-quotes handling?" http://www.mail-archive.com/perl6-users@perl.org/msg03986.html -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net