more useful options | |
PerlMonks |
Re^4: Unwanted parameter when executing CGI scriptsby Nocturnus (Beadle) |
on Jan 05, 2013 at 16:24 UTC ( [id://1011796]=note: print w/replies, xml ) | Need Help?? |
OK, I am sorry. You are right (no need to read the source code, only the documentation ...). Interestingly, the delete method seems to remove the respective entry only from $q->params, but not from $q->url_params (now guess which of the two I (have to) use). This is not documented in the CGI.pm documentation as far as I have seen. But that's not a big problem. I just will use one of the usual methods to remove the respective hash entry. Besides this, I didn't get your code to work like I want. Perhaps I have another error, but at the moment it seems that $q->keywords is empty if the script is called without any parameters, so $q -> keywords evaluates to false in this case, and the code doesn't get executed anyways. Regards, Nocturnus
In Section
Seekers of Perl Wisdom
|
|