in reply to More efficient reading of forms in CGI
Then, you can do either one of the following, depending on your preference:use CGI::Lite; my $cgi = new CGI::Lite;
Quick, easy, and all in a neat little hash, ready for you to use in statements like thise:$form = $cgi->parse_form_data; %form = $cgi->parse_form_data; $form = $cgi->parse_form_data ('GET', 'HEAD' or 'POST');
Yes, I know that you could write something to put your CGI.pm params into a hash, but then I couldn't write a plug for CGI::Lite, could I? If you're not using some of the big features of CGI.pm, like html generation, you're better off with CGI::Lite. Either way, like others have said here, get your incoming variables out of the main namespace.print "blabla bla bla $form->{entry} blabla<br>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: More efficient reading of forms in CGI with CGI::Lite
by bradcathey (Prior) on Sep 30, 2003 at 18:10 UTC | |
by bart (Canon) on Sep 30, 2003 at 19:57 UTC |