title: How to terminate a program in Perl - exit or die?
body: <p>I am using syntax checking to see whether my Perl script is being used in the correct way. If the syntax is not correct, I display a message saying what the correct syntax is, and then end the execution of the program.</p>
  
  <p>Between:</p>
  
  <pre><code>print "Please use the following syntax: ...";
  exit 1;
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>die("Please use the following syntax: ...");
  </code></pre>
  
  <p>Which one should I use? I know <code>die</code> would have been the answer if exception handling was in place, but that is not the case.</p>
  
  <p>Which one is the better choice for program termination without exception handling?  Please also say why.</p>