[ale] perl CGI.pm and width=>100% ??
David Corbin
dcorbin at imperitek.com
Wed Feb 27 11:29:40 EST 2002
David S. Jackson wrote:
>On Wed, Feb 27, 2002 at 01:21:37PM -0000 Greg Sabino Mullane <greg at turnstep.com> wrote:
>
>>
>>>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%"},
>>
>
>That's Got It!! Thanks again, Greg. Once again you hit the nail
>on the head! :-)
>
For what it's worth, I don't think you need the brackes either.
print table(cellpadding=>5,width=>"100%") works too, I think.
---
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