The *[ ]* is telling Tr to make two row ...
-----Original Message-----
From: James Kelty [mailto:[EMAIL PROTECTED]]
Sent: July 24, 2001 17:15
To: [EMAIL PROTECTED]
Subject: This is driving me crazy....
I am just testing the table capabilities of the CGI.pm, and this is the
code that I have written to write the table:
print $cgi->table({-border=>'1',
-bgcolor=>"#666666",-cellspacing=>'0',-width=>'500'},
Tr({-align=>'CENTER',-valign=>'TOP'},
[
td({-align=>'LEFT',-valign=>'TOP',-height=>'50',-width=>'50'},['Welcome']),
td({-align=>'RIGHT',-valign=>'TOP',-height=>'450',-width=>'450'},
`/bin/date +'%m-%d-%y'`,br,`/bin/date +'%H:%M:%S'`)
]
)
);
Please ignore the back-ticks, they are coming out, I was just messing
around. 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?
thanks!
-James
--
James Kelty
Sr. Unix Systems Administrator
The Ashland Agency
[EMAIL PROTECTED]
541.488.0801
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]