Not to mention, with some creative
map use, you can create dynamic tables and such pretty easy, while not breaking the stylish
print 'some','things','in','a','row'; :-)
use CGI;
my $cgi = CGI->new;
print $cgi->header,
$cgi->start_html('Times Tables'),
$cgi->table( { -border => 1 },
( map {
my $r = $_;
$cgi->Tr( ( map {
$cgi->td( $_ * $r ),
} 1 .. 50 ) ),
} 1..50 ) ),
$cgi->end_html;
And for the obfuscated lovers in all of us (some people would call the above obfuscated..
slackers:-)
use CGI;my$cgi=CGI->new;print##
$cgi->header=>$cgi->start_html#
('Times Tables')=>$cgi->table(#
{-border=>1}=>(map{my$r=$_;$cgi
->Tr((map{$cgi->td($_*$r)}1..50
))=>}1..50))=>$cgi->end_html;##
--
Casey