SPUG: Re: perl2exe perl-cgi file size problem
Colin Meyer
cmeyer at helvella.org
Thu May 2 15:21:24 CDT 2002
On Thu, May 02, 2002 at 12:12:30PM -0700, Ken Clarke wrote:
>
> ----- Original Message -----
> From: "Meryll Larkin" <humbaba9 at yahoo.com>
> To: "SPUG List" <spug-list at pm.org>
> Sent: May 2, 2002 10:23 AM
> Subject: SPUG: perl2exe perl-cgi file size problem
>
>
> >The script is now only using param from CGI, and all the
> >rest is Perl...
>
> If you're just reading text form input (IE not uploading from a
> multipart/form-data enctype form) and your form(s) don't include
> multi-select menues or multiple check boxes with the same name parameter,
> use this and and replace $q -> param('formfieldname') with $q ->
> {'formfieldname'}
Modern browsers use ';' instead of '&' to separate parameters in the URL.
The [deleted] code sample would not handle that, so it may well fail to
just read text from a simple form input.
I'd strongly suggest using CGI.pm instead of any hand-rolled solution.
CGI.pm is incredibly robust, and correctly handles *all* properly
formatted HTTP/1.0 or HTTP/1.1 requests, and runs correctly on platforms
with odd line endings, etc. If you absolutely feel that CGI.pm is too
bloated, then try CGI::Lite.
If you don't wish to take my word on it, read what Merlyn (Randal
Schwartz), Ovid, and Japhy have to say about it:
Merlyn on why to use CGI.pm:
http://www.perlmonks.org/index.pl?node_id=28499
Ovid on problems with alternatives to CGI.pm:
http://www.perlmonks.org/index.pl?node_id=28499
Japhy on the difficulties of parsing a CGI query:
http://www.crusoe.net/~jeffp/articles/ideas/CGI/3.html
Have fun, and keep using CGI.pm,
-C.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list