--- James Kelty <[EMAIL PROTECTED]> wrote:
> Anyway, I, from what I gathered from the perldoc thought that
> this would write two <td></td>'s inside of one <tr> element in
> html, but when I look at the source code, it is writing an <tr> for
> each <td>, why is that, and how can I stop it?
Please ignore my compulsive formatting. Just a habit.
Try changing the comma between your td's to a dot (concatenation instead of creating a
list):
use CGI::Pretty qw/:standard/;
my $cgi = CGI->new;
print table( { -border => '1',
-bgcolor => "#666666",
-cellspacing => '0',
-width => '500'},
Tr( { -align => 'CENTER',
-valign => 'TOP' },
[
td( { -align => 'LEFT',
-valign => 'TOP',
-height => '50',
-width => '50' },
['Welcome'] ). # <- change the comma to a dot
td( { -align => 'RIGHT',
-valign => 'TOP',
-height => '450',
-width => '450'},
"Jan 1, 2001", br, "some time" ) # end td
]
) # end tr
); # end table
Cheers,
Curtis Poe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]