Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: mod_perl 2 migration problems

by johnnywang (Priest)
on Sep 14, 2006 at 16:43 UTC ( #572953=note: print w/replies, xml ) Need Help??


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

well, yes, but I'm working with someone else's code, and can't really re-write everything at the moment.

Replies are listed 'Best First'.
Re^3: mod_perl 2 migration problems
by perrin (Chancellor) on Sep 14, 2006 at 18:26 UTC
    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.
      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://572953]
help
Chatterbox?
[moritz]: ... "so there is no need to do anything"
[LanX]: and the code is a bit of a mess
[LanX]: moritz, no ... jsut copy one line of my code
[moritz]: I'm still using the CB, because ambrus's #cbstream makes it bearable
[LanX]: ... the rest is loaded from a node
[holli]: the best course of action would be to transfer the data to something well tested. even if it isnt perl based
[moritz]: but even if I had all the time in the world, I wouldn't spend much on perlmonks
[LanX]: holli: LOL
[LanX]: moritz: why ? family?
[LanX]: or other language?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-11-20 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?