is this what you want?
$apr->location()
On Feb 22, 2006, at 6:43 PM, Tyler MacDonald wrote:
I've been poking around in the documentation but I can't seem to
find this... Is there any way for a <Perl> section in a httpd.conf
file to
know what file it's been evaluated out of? Ideally I'd like to be
able to do
something similar to this for packaging mod_perl handlers and apache
configuration together:
<Perl>
use File::Basename ();
use File::Spec ();
my $me = Apache2::PerlSections->filename;
unshift @INC, File::Spec::catfile(File::Basename::dirname($me),
"perl5lib");
</Perl>
Thanks,
Tyler