Oops, forgot to Cc the list.
----- Original Message -----
From: "Per Einar" <[EMAIL PROTECTED]>
To: "Gunther Birznieks" <[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 8:43 AM
Subject: Re: [OT] Lightweight CGI.pm - Why?


>
> ----- Original Message -----
> From: "Gunther Birznieks" <[EMAIL PROTECTED]>
> To: "Larry Leszczynski" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Sunday, May 20, 2001 5:37 AM
> Subject: Re: [OT] Lightweight CGI.pm - Why?
>
>
>
> > It's nice to know that if you print a radio button form element using
> > CGI.pm, that if the value was set previously, CGI.pm knows how to print
> > which ones are checked and non checked and all that kind of crap.
>
> That is my main reason too. And that's the reason to use CGI.pm instead of
> any other HTML generating module. You know that it will always do the
right
> thing.
>
>
> > At 06:18 PM 5/19/01 -0400, Larry Leszczynski wrote:
>
> > >It seems like people like to use the HTML generating features of
CGI.pm.
> > >I've generated a lot of HTML, and I haven't run into any situations
where
> > >I would do something like this:
> > >
> > > >    print table(
> > > >        -align => "center",
> > > >        tr(
> > > >            td( "foo" ),
> > > >            td( "bar" ),
> > > >        ),
> > > >    ) ;
> > >
> > >instead of just doing this:
> > >
> > >print <<EOF;
> > >    <table align="center">
> > >    <tr>
> > >       <td>foo</td>
> > >       <td>bar</td>
> > >    </tr>
> > >    </table>
> > >EOF
> > >
> > >Seems like the same amount of typing, it's easier (for me anyway) to
read
> > >and understand, and faster.  What am I missing?
>
> well that's ok for occasions when you know the value, but if you want to
do
> something more complex, like
>
> print hidden(
>         -name => 'foo',
>         -value => join ( ', ', @foo)
> );
>
> Then this is much easier and cleaner to use.
>
> Per Einar Ellefsen
> [EMAIL PROTECTED]
>
>

Reply via email to