in reply to Switching from backticks to open
use Text::ParseWords; # core module my $args = q(-w 70 -c 80 -r 'bla bla'); my @ARGS = shellwords($args); # this is how to keep single-quotes # [but it's probably not what you want for open()] my @ARGS2 = parse_line('\s+', 1, $args);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Switching from backticks to open
by ikegami (Patriarch) on Nov 03, 2008 at 09:04 UTC | |
by repellent (Priest) on Nov 03, 2008 at 17:51 UTC | |
|
Re^2: Switching from backticks to open
by Eule (Novice) on Nov 03, 2008 at 11:05 UTC |