in reply to executing commands and going on

If you want to print
HELLO WORLD;
you have to escape the ";" character, which is interpreted as command separator by the shell:
system ("echo 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 :)

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
    system(qq{echo "HELLO WORLD;" &});

    also does the trick.