title: execute perl in command line without specifying perl in UNIX
body: <p>There is a similar question about Windows, but it won't work for Unix based computers (OS X specifically).</p>
  
  <p>I want to type the name of a file, say <code>example.pl</code> or <code>example.pl parametertext.txt</code>, and have it know to execute perl.</p>
  
  <p>I specified <code>#!/usr/bin/perl</code> in the file so it can find the executable.  Instead, I get the message:</p>
  
  <pre><code>bash: example.pl: command not found
  </code></pre>