perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Förtsch <torsten.foert...@gmx.net>
Subject Re: mod_perl and $0
Date Mon, 15 Apr 2013 08:30:08 GMT
On 15/04/13 08:12, Jan Kaluža wrote:
> A: is it conceivable that we fix mod_perl so that it actually returns
> the correct value for $0?

I probably missed the original mail. Sorry about that.

But what would the "correct value of $0" be?

For registry scripts I can imagine something similar to $SCRIPT_FILENAME
in CGI scripts. But how about modperl handlers or request phases other
than response or even phases outside the request cycle?

And 2nd, should that value show up in top/ps?

By the way it came never to my mind to check the value of $^X in
mod_perl. Turns out it points to the httpd binary. I think that is worth
to be fixed. But how? I think we can get at the path of the libperl.so.
But how to deduce a perl binary from that? The only way I can see is to
set a constant value at compile time. In fact, a perl binary doesn't
even need to exist.

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message