Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
On executing my Perl Script I get the following error:$INVALID_STRING="!"$\%&'()*/@`~"; $STRING_TO_EXECUTE="java myprogram -opt1 ABC -opt2 $INVALID_STRING"; @output=`$STRING_TO_EXECUTE 2>&1`;
I tried removing the character ` and ' out of the $INVALID STRING, but it still complains with similar error. Can anyone help solve this problem ? Thanks in advance.sh: -c: line 1: unexpected EOF while looking for matching ``' sh: -c: line 3: syntax error: unexpected end of file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error using back tick operators if it has special perl chars in it
by japhy (Canon) on Jul 28, 2004 at 19:29 UTC | |
|
Re: Error using back tick operators if it has special perl chars in it
by gaal (Parson) on Jul 28, 2004 at 19:36 UTC | |
|
Re: Error using back tick operators if it has special perl chars in it
by revdiablo (Prior) on Jul 28, 2004 at 22:26 UTC |