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>


Reply via email to