<on 02.07.01, James Kelty wrote>
> Hello.
>
> I can't seem to find any info on CGI.pm's ability to write tables. Does
> it have the ability? Or do I have to write it in raw html first add add
> CGI.pm elements to it?
>
> print << "END_HTML"
>
> <table>
> <tr><td>
> END_HTML;
>
> print $cgi->em("stuff here");
>
> print << "END_HTML2"
>
> </td></tr></table>
> END_HTML2
>
> Like this?
>
Nope you don't have to do it by hand. :)
from "perldoc CGI":-
print table({-border=>undef},
caption('When Should You Eat Your Vegetables?'),
Tr({-align=>CENTER,-valign=>TOP},
[
th(['Vegetable', 'Breakfast','Lunch','Dinner']),
td(['Tomatoes' , 'no', 'yes', 'yes']),
td(['Broccoli' , 'no', 'no', 'yes']),
td(['Onions' , 'yes','yes', 'yes'])
]
)
);
HTH.
--lucy