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

David S. Jackson deepbsd at earthlink.net
Wed Feb 27 09:04:01 EST 2002


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!  :-)

-- 
David S. Jackson                        dsj at dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I thought there was something fishy about the butler.
Probably a Pisces, working for scale.
  -- Firesign Theatre, "The Further Adventures of Nick Danger"

 PGP signature




More information about the Ale mailing list