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-unsubscr...@perl.apache.org For additional commands, e-mail: dev-h...@perl.apache.org