On Sun, 2003-11-09 at 01:36, Joshua N Pritikin wrote:
> First there was "use CGI".  Now there are lots of modules
> which provide a similar service, for example CGI::Simple.
> 
> What is the modern best solution for parsing form data, etc?
> libapreq?

It depends on what your needs are.  If you just need to parse form data
and cookies, and don't care about things like generating HTML with
sticky form widgets, I would stay away from CGI.pm.  It works fine, but
other modules are faster and take less memory.

If you only need to run on mod_perl, libapreq is a good choice.  It is
the fastest.  I don't think it is fully working on mod_perl 2 yet, but
maybe someone else can correct me on that if I'm wrong.

If you want to write scripts that work under mod_perl AND mod_cgi,
CGI::Simple is a good choice.  Same API as CGI.pm, better performance. 
I also like CGI_Lite, because it's much simpler than even CGI::Simple,
and doesn't use globals internally.  It doesn't seem to be
well-maintained though.

- Perrin


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to