title: executing perl cgi script from html
body: <p>I'm, trying to run a perl script from html, but I'm getting error during execution. Here is  my html and 2 lines perl code. The error code is not very descriptive just says "Internal Server Error" and some other lines. I also want to know how to display the receive user name in the perl script.</p>
  
  <pre><code>pwd
  /var/www/cgi-bin
  
  ls -l
  total 4
  -rwxr-xr-x 1 root root 49 Aug 26 16:49 username.pl
  </code></pre>
  
  <p>Html Code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt; Hello &lt;/h1&gt;
  &lt;form action="/cgi-bin/username.pl" method="POST"&gt;
       &lt;input type="text" name="username"&gt;
       &lt;input type="submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Perl code:</p>
  
  <pre><code>#!/usr/bin/perl
  print "Received user name is\n";
  </code></pre>