title: CGI table error
body: <p>I'm trying to display a table with some information and I have this code for that:</p>
  
  <pre><code>print $q-&gt;start_html(-title =&gt; "user summary");
  
  print $q-&gt;table({-border=&gt;1},
                     $q-&gt;tr($q-&gt;th(["Info","Value"])),#header
                     $q-&gt;tr($q-&gt;td(["Date",$date_var])),#first row
                     $q-&gt;tr($q-&gt;td(["Uptime",$uptime])),#second row
                     $q-&gt;tr($q-&gt;td(["1 min",$avg_one])),#third row
                     $q-&gt;tr($q-&gt;td(["5 min",$avg_two])),#fourth row
                     $q-&gt;tr($q-&gt;td(["15 min",$avg_two])),#fifth row
                     );
  </code></pre>
  
  <p>but when I run it I get:</p>
  
  <pre><code>Content-Type: text/html; charset=ISO-8859-1
  
  &lt;!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"&gt;
  &lt;head&gt;
  &lt;title&gt;user summary&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Undefined subroutine CGI::tr
   at ./index.cgi line 30
  </code></pre>
  
  <p>where <code>./index.cgi line 30</code> refer to this line <code>print $q-&gt;table({-border=&gt;1</code> and on the webpage I get <code>500 Internal Server Error</code></p>
  
  <p>so any ideas?</p>