Perrin Harkins wrote:
On Thu, 2006-08-31 at 09:23 -0700, Jay Scherrer wrote:
I have used "cgi-lib.pl" from <http://cgi-lib.berkeley.edu> for awhile now.
Please don't use that. It is outdated and has problems with security
and with standards compliance. Use CGI.pm instead. It's a painless
transition. See the CGI.pm docs for information on how to port your
code.
- Perrin
Yes, of course CGI.pm is the most up to date module. The question was
"Anyone have a code snippet of a routine that will parse both POST and
GET user input and place it into a hash?". So if we are not to forget
our predecessors and learn from others examples, then I would submit the
ReadParse routine from "cgi-lib.pl" as good place to start.
# ReadParse
# Reads in GET or POST data, converts it to unescaped text, and puts
# key/value pairs in %in, using "\0" to separate multiple selections
Jay Scherrer