Just print '<table>' and '</table>' separately. Then, you are free to
when necessary. Alternatively, if you are doing a good deal of this,
look at HTML::Template on cpan--quite nice for doing this type of
thing.
Sean
On Sep 9, 2004, at 6:20 PM, Ing. Branislav Gerzo wrote:
Hi CGIers!
I have small question about putting variables into CGI script, which
produces table, here is snip of code:
use CGI qw(:standard);
#...
open FH, items.txt or die "Can't open $!";
my @items = sort <FH>;
print table(
{-border=>undef},
caption('Choose your favourite brand:'),
Tr({-align=>CENTER,-valign=>TOP},),
td($items[0], $items[1], $items[2]),
td($items[3], $items[4], $items[5])
);
#...
But how to do that inside while loop ? Can I use table() function, or
I have to print it (like without CGI module)?
Thanks for any help.
-=x=-
Skontrolované antivírovým programom NOD32
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>