title: Search pattern not terminated in Perl
body: <p>I've been trying to debug this search pattern not terminated error, but can't seem to find where in(I guess my for each loop)it is not terminated?  The last line at the bottom of my code is line 160.  Can anyone give me any hints on what in my code is wrong?  I am trying to print out each header in the select results and each of the data in each of its rows and print it out on the CGI page.   </p>
  
  <p>C:\xampp\cgi-bin>perl create_report.cgi
  Search pattern not terminated at create_report.cgi line 160.</p>
  
  <pre><code>foreach $rpt_sel_output(@desc_origin)
  {
  ($rptid, $servid, $rptcat_id, $desc, $remail_add, $remail_info, $ent_usr, $ent_dte, $up_usr, $up_dte, $fav)=split(",",$rpt_sel_output);
  if($rptid eq 'ReportID') #header rows
  {
  print"&lt;tr&gt;/n";
  print"&lt;th&gt;$rptid&lt;/th&gt;";
  print"&lt;th&gt;$servid&lt;/th&gt;";
  print"&lt;th&gt;$rptcat_id&lt;/th&gt;";
  print"&lt;th&gt;$desc&lt;/th&gt;";
  print"&lt;th&gt;$remail_add&lt;/th&gt;";
  print"&lt;th&gt;$remail_info&lt;/th&gt;";
  print"&lt;th&gt;$ent_usr&lt;/th&gt;";
  print"&lt;th&gt;$ent_dte&lt;/th&gt;";
  print"&lt;th&gt;$up_usr&lt;/th&gt;";
  print"&lt;th&gt;$up_dte&lt;/th&gt;";
  print"&lt;th&gt;$fav&lt;/th&gt;";
  print"&lt;tr/&gt;/n";
  print"&lt;/table&gt;/n";
  next;
  }
  print"&lt;tr&gt;/n";# data from select that was outputed
  print"&lt;td&gt;$rptid&lt;/td&gt;";
  print"&lt;td align 'right'&gt; $servid&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $rptcat_id&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $desc&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $remail_add&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $remail_info&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $ent_usr&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $ent_dte&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $up_usr&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $up_dte&lt;/td&gt;/n";
  print"&lt;td align 'right'&gt; $fav&lt;/td&gt;/n";
  print"&lt;tr/&gt;/n";
  }
  }
  print"&lt;/table&gt;/n";
  
  
  print"&lt;&lt;FOOTER/n"; 
       &lt;/body&gt;
  print&lt;/html&gt;FOOTER;
  </code></pre>