Output a HTML table : HTML Table « CGI « Perl
- Perl
- CGI
- HTML Table
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