title: How do I exit the command shell after it invokes a Perl script?
body: <p>If I run a Perl script from a command prompt (c:\windows\system32\cmd.exe), how can I exit the command prompt after the script finishes executing.</p>
  
  <p>I tried <code>system("exit 0")</code> inside the Perl script but that doesn't exit the cmd prompt shell from where the Perl script is running.</p>
  
  <p>I also tried <code>exit;</code> command in the Perl script, but that doesn't work either.</p>