Sorry for forgetting the \\ escape. The command will never have spaces in it--only the arguments.
I too took a look at the Argv module and tried it out. It doesn't satisfy the needs I have:
$ perl -MArgv -MData::Dumper -E 'say Data::Dumper::Dumper [ Argv->new( + "/usr/local/bin/ssh %s \"/opt/something/bin/somebinary || echo \"Cou +ld not execute somebinary.\"" )->argv ]' $VAR1 = [ '/usr/local/bin/ssh %s "/opt/something/bin/somebinary || ech +o "Could not execute somebinary."' ];
In reply to Re^2: Splitting up quoted/escaped command line arguments
by Tommy
in thread Splitting up quoted/escaped command line arguments
by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |