Hey! that works quite good despite its humble name - I never knew it existed.
use Text::ParseWords; my @x = shellwords("-x '1 2 3' -y 4 5"); print join("\n", @x); -x 1 2 3 -y 4 5
In reply to Re^2: Parsing a command-line string into an array
by bliako
in thread Parsing a command-line string into an array
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |