Actually exit exits perl program and returns value, it doesn't close terminals. It looks as if you opened cmd then ran perl program which will kill cmd. You can run program using perl interpreter directly which will close terminal immediately after finishing script. You can also add something like this but this will kill all command prompts.
system("taskkill /im cmd.exe /f");
In reply to Re: Windows 10 Command Prompt
by Marek1415
in thread Windows 10 Command Prompt
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |