Alternately use the LIST form of system yourself directly (or IPC::Run if you need the output from the subprocess) and take any intermediary shell out of the picture to begin with and you won't need to worry about quoting.
my $test_sh_ret = system( "test.sh", $string );
In reply to Re^2: passing a command line argument
by Fletch
in thread passing a command line argument
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |