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

Thomas Keller kellert at ohsu.edu
Tue Oct 23 15:30:56 PDT 2007

install pmtools.pm and use the pmpath method

MMI Shared Resource Facility
kellert at ohsu.edu

On Oct 23, 2007, at 2:22 PM, 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