title: Perl simple form and html problems,
body: <pre><code>Server error!
  
  The server encountered an internal error and was unable to complete your request.
  
  Error message: 
  Premature end of script headers: askName.pl
  </code></pre>
  
  <p>Heres my code...</p>
  
  <pre><code>#!/usr/bin/perl
  
  #askName.plx
  
  #use 5.006;
  use strict;
  use warnings;
  use CGI::Carp qw(fatalsToBrowser);
  use CGI;
  
  print "Content-type: text/html\n\n";
  
  my $cgi = new CGI;
  
  print"&lt;html&gt;&lt;head&gt;&lt;title&gt; Forms Intro! &lt;/title&gt;&lt;/head&gt;"; print "&lt;h1&gt; Welcome, ",$cgi -&gt;            
  param('first'), " " , $cgi -&gt; param('last'), "&lt;/h1&gt;"; print"&lt;/html&gt;";
  </code></pre>
  
  <p>I've tried formatting it like this also</p>
  
  <pre><code>print $cgi -&gt; header();
  print $cgi -&gt; start_html("Welcome");
  print "&lt;h1&gt; Welcome, ",cgi -&gt; param('first'), " " , $cgi -&gt; param('last');, "&lt;/h1&gt;";
  print $cgi -&gt; end_html();
  </code></pre>
  
  <p>but it didn't work :/</p>