Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

RE: RE: RE: I use CGI.pm for

by cwest (Friar)
on Jun 08, 2000 at 06:11 UTC ( [id://17012]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: I use CGI.pm for
in thread I use CGI.pm for

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://17012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found