in reply to executing commands and going on
you have to escape the ";" character, which is interpreted as command separator by the shell:HELLO WORLD;
Note the double backslash: you're using single quotes, so the backslash is the escaping character. The first escapes the second, which gets passed to the shell to escape the ";". There are almost infinite variations in your quoting approach, both within Perl and the shell, but it's left as an exercise :)system ("echo HELLO WORLD\\; &");
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: executing commands and going on
by ikegami (Patriarch) on May 13, 2005 at 16:45 UTC |