Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: [SOLVED] Unwanted parameter when executing CGI scripts

by Nocturnus (Beadle)
on Jan 07, 2013 at 08:36 UTC ( #1011975=note: print w/replies, xml ) Need Help??

in reply to [SOLVED] Unwanted parameter when executing CGI scripts

Well, there is more misbehavior in For example, if we call


then $q->url_param contains the key "keywords", but the respective value is empty. That means that you can't pass a parameter named "keywords" via query string if you use $q->url_param. The value of the "keywords" parameter will just be overwritten by

Due to the problems mentioned in this thread, and due to the problem described above, I dumped and now parse the query string myself (with the help of uri_unescape). My code is now working like expected.



Replies are listed 'Best First'.
Re^2: [SOLVED] Unwanted parameter when executing CGI scripts
by Anonymous Monk on Jan 07, 2013 at 09:14 UTC

    Well, there is more misbehavior in

    Nope, wrong again.

    But I'm glad you've found a solution that works for you

      What exactly is wrong again?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011975]
[perldigious]: Quick question, is undef %hash a recommended/good way to delete an entire hash structure from memory? Or sould I be doing it some other way?
[1nickt]: The best way is to scope it tightly so it just goes away when you are finished with it.
[perldigious]: but... but... perldigious is the unvirtuous kind of lazy in this case. :-)
[perldigious]: Just kidding. Thanks 1nickt, I'll go ahead and do it the right way. An extra set of brackets and a little extra indentation isn't too much to ask.
[karlgoethebier]: perldigious: perhaps a block if you are paranoid ;-)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-07-21 19:47 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.