modperl_value_of_cgi_pm_plus_other_advice

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Should I use CGI.pm?
From: "Peter J. Schoenster" <peter@schoenster.com>
Date: Tue, 28 Nov 2000 21:36:44 -0700

On 28 Nov 2000, at 18:54, quagly wrote:

>  I am working my way through the eagle book.  I have not used CGI.pm
> before.  It is used in many (most?) of the examples.  
> 
> Is it worth learning to use it?  
> 
> I am not clear whether the authors are using it because the think it
> is the best way to go, or because they already know it ( or created it
> )and it is convenient.  
> 
> I have not done CGI programming before, but have some experience with
> java servlets.  It there a compelling reason I should learn it ( other
> than that it would help me to understand the book? )

I have long used CGI.pm but I never used most of its functions  The 
following module supplies me with everything I got from CGI.pm:

http://search.cpan.org/doc/GEOFF/Apache-
RequestNotes_0.05/RequestNotes.pm

It really gives me the essence (form values in a hash) of what I 
need ... it gives more but I haven't been there yet.

I'd suggest using a template system. My favorite (easily spans 
plain cgi to modperl and is very easy for designers to understand) 
is:

http://search.cpan.org/doc/SAMTREGAR/HTML-Template-
2.0/Template.pm

There are plenty more and I believe there was recent discussion (or 
periodic).

Also, search the archives, there has been periodic talk about this. I 
use these archives but there are others:

http://www.geocrawler.com/lists/3/Web/182/0/

===

Subject: Re: Should I use CGI.pm?
From: Stas Bekman <stas@stason.org>
Date: Wed, 29 Nov 2000 11:41:41 +0100 (CET)

On Tue, 28 Nov 2000, quagly wrote:

> 
> 	I am working my way through the eagle book.  I have not used CGI.pm
> before.  It is used in many (most?) of the examples.  
> 
> Is it worth learning to use it?  
> 
> I am not clear whether the authors are using it because the think it is
> the best way to go, or because they already know it ( or created it )and
> it is convenient.  
> 
> I have not done CGI programming before, but have some experience with
> java servlets.  It there a compelling reason I should learn it ( other
> than that it would help me to understand the book? )

It's much simpler than you think -- Lincoln Stein is the one who wrote and
maintains CGI.pm :) (he is the co-author)

It's a very good module, but it's quite bloated. So if you need to process
forms and you are under mod_perl Apache::Request is the one to go with.

===

Subject: Re: Should I use CGI.pm?
From: "Thierry-Michel Barral" <kktos@electron-libre.com>
Date: Wed, 29 Nov 2000 11:52:39 +0100

except it's a little buggy ! (Apache::Request)

I have been obliged to return to CGI.pm, coz libapreq cannot handle
correctly the multipart enctype, as for file upload....

What about the 0.32 ?

I'm a bit underskilled to patch and compile such a tool, but If someone can
help me, I will be pleased to start the process.

===



the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu