title: errorlevel in perl
body: <p>I need to terminate the perl script according to the return code from the previous step.<br>
  something like</p>
  
  <pre><code>  IF ERRORLEVEL 1 goto ERROR  
  </code></pre>
  
  <p>in batch processing.<br>
  i have  </p>
  
  <pre><code>$PROG = `spu_comp 2&gt;&amp;1 $a 1 1`;  
  </code></pre>
  
  <p>i need if this step gives error, program should terminate.<br>
  thanks in advance for your inputs.</p>