|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Unwanted parameter when executing CGI scriptsby tobyink (Prior) |
| on Jan 04, 2013 at 14:27 UTC ( #1011638=note: print w/ replies, xml ) | Need Help?? |
|
Of course, the better answer is: stop using CGI.pm; use Plack. PS: yes, it does have to do with <isindex>. This is a very old HTML tag that was the predecessor to modern HTML forms. It submitted just a single field which was intended as a "search" field. Because only a single field was ever submitted, there was no need for the "&fieldname=" bits of the query string. Thus CGI.pm assumes that when there is no ampersand nor equals sign in the query string, an isindex-style query has been made.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||