in reply to HTML and CGI coding
print Tr ({-align => "CENTER", -valign=>"TOP", -BGCOLOR=>"blue", -font-color=> "yellow", -FONT-FAMILY=> "verdana,arial,helvetica", -FONT-SIZE=> "12"});
print Tr ({align => "CENTER", valign=>"TOP", BGCOLOR=>"blue", "font-color"=> "yellow", "FONT-FAMILY"=> "verdana,arial,helvetica", "FONT-SIZE"=> "12"});
will work, in the latters case, because a list is being passed in, and the leading - causes some magic to be done on the list. (makes it into a hash in CGI), and the former because you are passing in a hashref, which CGI.pm understands.print Tr (-align => "CENTER", -valign=>"TOP", -BGCOLOR=>"blue", "-font-color"=> "yellow", "-FONT-FAMILY"=> "verdana,arial,helvetica", "-FONT-SIZE"=> "12");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML and CGI coding
by demerphq (Chancellor) on Dec 09, 2002 at 13:43 UTC | |
by hbradshaw (Novice) on Dec 09, 2002 at 15:11 UTC | |
by pfaut (Priest) on Dec 09, 2002 at 16:15 UTC | |
by hbradshaw (Novice) on Dec 09, 2002 at 16:19 UTC | |
by jeffa (Bishop) on Dec 09, 2002 at 17:10 UTC | |
by thinker (Parson) on Dec 09, 2002 at 15:24 UTC | |
by demerphq (Chancellor) on Dec 09, 2002 at 15:46 UTC |