title: Can't find string terminator HERE anywhere before EOF
body: <p>I am having trouble getting this script to work, It seems to work fine locally but not on the server for 1 and 1.</p>
  <p><strong>The error I am getting is:</strong></p>
  <blockquote>
  <p>Can't find string terminator HERE anywhere before EOF</p>
  </blockquote>
  <p><strong>I also seem to be getting this error:</strong></p>
  <blockquote>
  <p>255 perl returned nonzero status</p>
  <p>Status: 500</p>
  <p>Content-type: text/html**</p>
  </blockquote>
  <p>I am new to CGI, but I could not find anything online about this particular issue.</p>
  <p>Here is the HTML:</p>
  <pre><code>        &lt;div class=&quot;form&quot;&gt;&lt;h1&gt;Free Quote&lt;/h1&gt;
  
          &lt;form action=&quot;/quote.cgi&quot;&gt;
              First Name: &lt;input type=&quot;text&quot; name=&quot;fName&quot; placeholder=&quot;John&quot;&gt; &lt;br&gt;
              Last Name: &lt;input type=&quot;text&quot; name=&quot;lName&quot; placeholder=&quot;Smith&quot;&gt;&lt;br&gt;
              &lt;br&gt;
              Company: &lt;input type=&quot;text&quot; name=&quot;company&quot; placeholder=&quot;Mr Kittles&quot;&gt;&lt;br&gt;
              Phone Number: &lt;input type=&quot;text&quot; name=&quot;number&quot; placeholder=&quot;xxx-xxx-xxx&quot;&gt;&lt;br&gt;
              E-Mail: &lt;input type=&quot;text&quot; name=&quot;email&quot; placeholder=&quot;Something@gmail.com&quot;&gt;&lt;br&gt;&lt;br&gt;
              Tell us what you you are looking for:&lt;br&gt;&lt;br&gt;&lt;textarea name=&quot;message&quot; rows=&quot;10&quot; cols=&quot;35&quot; placeholder=&quot;Tell us all about your website.  Include type of business, colors, current web address if possible, and anything else you think is relevant for us to do some research before we call you back.&quot;&gt;&lt;/textarea&gt;&lt;br&gt;&lt;br&gt;
              &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
      
          &lt;/form&gt;
      &lt;/div&gt;
  </code></pre>
  <p>And here is the CGI</p>
  <pre><code>#! /usr/bin/perl
  
  use CGI qw(:standard);
  use CGI::Carp qw(fatalsToBrowser);
  use strict;
  use warnings;
  
  print &quot;Content-type: text/html\n\n&quot;;
  
  
  my $fName = param('fName');
  my $lName = param('lName');
  my $company = param('company');
  my $number = param('number');
  my $email = param('email');
  
  
  print &lt;&lt;HERE;
  &lt;HTML&gt;
  &lt;BODY&gt;
  &lt;H3&gt;Item has been registered and added to inventory.txt&lt;/H3&gt;
  
  HERE
  
  open (INVENTORY, &quot;&gt;&gt;tet.txt&quot;) or die &quot;File error, $!&quot;;
  print INVENTORY &quot;$fName|$lName|$company|$number|$email\n&quot;;
  close INVENTORY;
  </code></pre>