Or the thing you double click could "cmd /k perl script.pl". The /k option causes the CMD to stay after the command has exited.
The OP may not want to burden the user with having to type "exit", though the cmd window can (usually) be closed with the 'x' in the top right corner.
In reply to Re^2: dos window
by goibhniu
in thread dos window
by cammac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |