Re: perlfaq9: How do I decode a CGI form?
[email protected] (Smylers) Mon, 03 Jan 2005 23:09:13 GMT
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <[email protected]> |
_brian_d_foy writes: > + I'm completely replacing this answer. The previous version was > pretty aggressive and ranted about cargo-culting. It also digressed > into a discussion of HTTP methods. Looks good to me -- that's a big improvment. > + The new answer showcases CGI.pm, and gives a couple examples. > I'd like people to use it because it's easier, not because we > decreed it's use. That's fine with me, and I'm the current maintainer of CGI::Lite. My only quibble is with this line: > + use CGI qw(:all); That's importing many functions into the main namespace, which could be a source of unexpected errors for a programmer who isn't familiar with all of them. Given that you only use one function in this example wouldn't it be better simply to do: use CGI qw(param); Smylers