[ale] perl CGI.pm and width=>100% ??

Greg Sabino Mullane greg at turnstep.com
Wed Feb 27 08:21:37 EST 2002



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> How do you express table cell widths in percentages while using Perl CGI?  
>  ...
> print table({cellpadding=>5}, {width=>"100%"},

Perl is smart enough to realize that you just want a percent character 
by looking at things in context. However, the real problem is that you 
need to put all of the attributes together as the first argument to 
the table() function, instead of putting each attribute as a new arg. In 
other words, do this instead of the above:

print table({cellpadding=>5, width=>"100%"},


Greg Sabino Mullane  greg at turnstep.com
PGP Key: 0x14964AC8 200202270808

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE8fN1FvJuQZxSWSsgRArsTAJ0aTVquIvWD8Zdkq0wZMdUsbFTlXQCfZvFY
OC116dA8w7OpdFKuywQvJ7I=
=N3Y8
-----END PGP SIGNATURE-----



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list