Output a HTML table : HTML Table « CGI « Perl






Output a HTML table

   

#!/usr/bin/perl -w

use strict;

print "Content-Type: text/html\n";
print "\n";

print "<table border=\"1\">";
foreach (sort keys %ENV) {
    print "<tr><th>$_</th><td>$ENV{$_}</td>";
}
print "</table>";

   
    
    
  








Related examples in the same category

1.Create three table rows with the same attributes for each
2.Creating a Table