in reply to Execution KSH Script from Perl
So, in Perl, you don't need to do any special quoting since your invocation doesn't pass through an interactive shell. You don't need to do so much string interpolation inline, either; a clean way of adding the quotes is with a helper function. This should work:
$return_val = system($grph_gen_multi_seq, $data_source_contents[2], myquote($data_source_contents[2]), $seq_num, myquote($seq_num), $data_source_contents[1]); # ... sub myquote { my($str) = @_; return "\"$str\""; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Execution KSH Script from Perl
by johngg (Canon) on Jan 18, 2007 at 20:54 UTC |