title: bash does not recognize executable Perl script
body: <p>I have a very mysterious problem with bash and/or perl. I'll try to describe the behaviour.</p>
  
  <p>Running a perl script via</p>
  
  <pre><code>./perlscript.pl
  </code></pre>
  
  <p>gives me a permission denied message.</p>
  
  <p>(I am the owner of the file and the path to it -from my home dir <em>and</em> the file contains <code>#!/usr/bin/perl</code> <em>and</em> is executable <code>-rwxr-xr-x</code> )</p>
  
  <p>Running the script like this:</p>
  
  <pre><code>perl perlscript.pl
  </code></pre>
  
  <p>is ok... </p>
  
  <p>Can anyone please help me fix my bash? Thank you</p>
  
  <hr>
  
  <pre><code>$ which perl
  /usr/bin/perl
  
  $ head -1 file.pl | od -c
  0000000 # ! / u s r / b i n / p e r l \n
  0000020
  </code></pre>