title: How can I pause the console window in .pl and .bat file?
body: <p>As I know, when I run <strong>cs myConsoleApp.cs</strong> from windows command line, I can pause the Console Window by add the code below:</p>
  
  <p><code>Console.ReadLine();</code></p>
  
  <p>Then How can I pause Console Window in myConsoleApp.pl and myConsoleApp.bat? I just want to monitor the running result from the Console window. Thank you.</p>
  
  <p>Suppose myConsoleApp.bat like this:</p>
  
  <pre><code>taskkill /f /im "E1.exe"
  taskkill /f /im "E2.exe"
  
  pause 
  </code></pre>
  
  <p>Suppose myConsoleApp.pl like this:</p>
  
  <pre><code>use strict;
  use warnings;
  
  print "Hello World!";
  
  &lt;&gt;;
  </code></pre>