title: Unable to get this simple Perl CGI program running
body: <p>Can someone please explain to me the very basics of getting perl to work on a server.  Do I need a module on the server?  If so where does it go?  What do I name my files and where do they go?  </p>
  
  <p>From my understanding you need a module and it goes in the cgi-bin.  I can't get a clear answer whether I name the file .pl or .cgi and when I put it in the cgi-bin I am getting a server error.  I also have my permissions set to 777, so that shouldn't be the problem.</p>
  
  <p>Please help!  I just want to understand the how to get the very basic program working such as the one below.  Thanks in advance!</p>
  
  <pre><code>    #!/usr/bin/perl
      require("cgi-lib.pl");
      print &amp;PrintHeader;
  
      print "&lt;html&gt;";
      print "&lt;head&gt;&lt;title&gt;Hello world!&lt;/title&gt;&lt;/head&gt;";
      print "&lt;body&gt;";
      print "&lt;p&gt;Hello world!&lt;/p&gt;";
      print "&lt;/body&gt;";
      print "&lt;/html&gt;";
  </code></pre>