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

Re^3: mod_perl 2 migration problems

by perrin (Chancellor)
on Sep 14, 2006 at 18:26 UTC ( #572972=note: print w/ replies, xml ) Need Help??


in reply to Re^2: mod_perl 2 migration problems
in thread mod_perl 2 migration problems

Well, you have to change code that uses $r->args to parse the query string because that doesn't work anymore. See the porting doc for more info. You can set the complete query string with $r->args(), which might allow later code to see your parameter changes, or you might be able to use Apache2::Request and modify the params using the APR::Table API on the object it returns when you call it like this:

my $table = $req->param;
I'm not sure those changes are visible to anyone else though.


Comment on Re^3: mod_perl 2 migration problems
Download Code
Re^4: mod_perl 2 migration problems
by johnnywang (Priest) on Sep 14, 2006 at 19:56 UTC
    great, that's what I did, just not sure whether that's the right/easy way. The doc says that the APR::Table is readonly, I guess I'll just manipulate the whole query string, then. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://572972]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-12-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (191 votes), past polls