shambright has asked for the wisdom of the Perl Monks concerning the following question:

I have a mod_perl script that is pre-loaded into Apache. Say...script.pl

I was considering adding some code to identify who was running the script.:

http://www.whatever.com/script.pl/accounting http://www.whatever.com/script.pl/engineering

Then the script could pull that info with a line like:
($junk,$source) = split (/\//, $ENV{'PATH_INFO'});

The Question:
Does adding pieces to the PATH affect the fact that the script is pre-loaded (with NO pieces added)? Do I have to pre-load each instance?

Replies are listed 'Best First'.
Re: mod_perl and extended paths
by valdez (Monsignor) on Nov 25, 2002 at 20:27 UTC

    No and no :) think about PATH_INFO as if it is an option given to a command line script...

    Ciao, Valerio