You might try exit(0), since that's a successful exit, or just exit with no argument (which is the same thing).
Is it the case that you want to launch the external application and then exit while it's running? In that case, you need to fork first.
Update: You might want to see also:
In reply to Re: Perl CGI exit
by kyle
in thread Perl CGI exit
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |