On Thu, 19 Sep 2002, Josh Chamas wrote:

> Hey mod_perl developers,
> 
> I am beginning to work with mod_perl, porting things like
> Apache::ASP & the Hello World benchmarks, and am finding
> some things that could be improved.
> 
> Can we get the old
> 
>    %args = $r->args
> 
> functionality back, at least in Apache::compat mode?

it's there, but you need to invoke as:
%args = $r->Apache::args;
(also works with 1.x)

> Also, can Apache::compat be trigger automatically by
> the perl-script directive?  Since the perl-script directive,
> as opposed to the new modperl one, seems to have lots
> of backwards compatibility hooks, how about just hooking
> up Apache::compat to it too?  Otherwise, I think module
> authors will have to add it themselves to all the modules
> to explicitly maintain compatibility with 2.0.

perl-script is not just backwards compat, it is for a CGI-ish 
environment.  sets up %ENV, *STD{IN,OUT}, etc.  whereas the 'modperl' does 
nothing special, just calls the handlers.

unlike 1.x, 2.x does not load anything unless you tell it to.
loading of Apache::compat will not be made automatic, its a 1-line config 
change in httpd.conf:

PerlModule Apache::compat

that's pretty painless considering what it takes to port a C module.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to