[Pdx-pm] Should be easy, but...

Mike Hitchcock mike at collegenet.com
Tue Oct 23 15:29:34 PDT 2007

Use the SCRIPT_FILENAME environment variable?

Mike Hitchcock
VP, Systems Engineering
CollegeNET, Inc.

Austin Schutz wrote:
> 	Ok, so all I want to know is what the path is to my cgi script. Sounds
> easy, but modperl changes $0 to /usr/sbin/apache2.
> 	Some random postings on the web indicate FindBin or FindBin::Real.
> Perfect, even supposed to work with modperl. Ok, here we go.. ah...
> Bin: /usr/sbin, Script: apache2, Realbin: /usr/sbin. Super.
> 	This should be taking 10 seconds, instead I've wasted the better part
> of a day trying to figure this out. Surely I must be missing something
> obvious, yes? Shouldn't the path to the currently executing script be simple
> to find, like maybe even in the perl core simple?
> 	Austin
> _______________________________________________
> Pdx-pm-list mailing list
> Pdx-pm-list at pm.org
> http://mail.pm.org/mailman/listinfo/pdx-pm-list

More information about the Pdx-pm-list mailing list