Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Michael Fowler
On Tue, Jul 10, 2001 at 09:46:27PM -0400, Morbus Iff wrote: > I think the only other one I had regarding the param() sort of interface > was the fact that I had to assign the value of a param to an interim value > (is that right?). So instead of: > >print "The color is $form->{foo}";#

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Akshay Arora
yes CGI.pm is smart. But if you want better performance, make sure mod_perl is installed. It will cache all the compiled Perl code for you. as for the code below. It looks correct. If you wish to make it one line, you could just use the concat operator print "The color is " . para

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Akshay Arora
I personally favour HTML::Embperl and HTML::EmbperlObject (part of the former). easily installed through CPAN and into Apache for you if you want. Or you can explicitly call it from a CGI page or command line or another perl script. Morbus Iff wrote: > > >> >CGI.pm isn't the only solution to cr

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Morbus Iff
>use CGI ":all"; >@values = param('foo'); > >If you're using the object interface, you've read the wrong book. >Even Lincoln himself doesn't use that for any examples I've seen him >teach in seminars. "perldoc CGI" is written that way mostly from >legacy, not optimization. Hmmm.

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Brett W. McCoy
On Tue, 10 Jul 2001, Morbus Iff wrote: > >Text::Template is installable as a regular module and is cross-platform. > > Hmm... My reasoning for saying it wasn't was because CPAN says it failed > the Win32 build. Have you used it before? Anything to say concerning memory > usage? It's small enough

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Morbus Iff
>> >CGI.pm isn't the only solution to creating dynamic web pages with Perl. >> >Text::Template is another alternative, as are embedded Perl >> >implementations like Apache::ASP, Mason, or even PerlScript (for IIS). >> >> None of which is crossplatform (Windows / Mac / Linux) >> or installable by a

Re: Re-inventing wheels (WAS re: Required Fields Module)

2001-07-10 Thread Brett W. McCoy
> >CGI.pm isn't the only solution to creating dynamic web pages with Perl. > >Text::Template is another alternative, as are embedded Perl > >implementations like Apache::ASP, Mason, or even PerlScript (for IIS). > > None of which is crossplatform (Windows / Mac / Linux) > or installable by a user