Re: Dumb path question

[email protected] (Siegel Anno)
Newsgroups perl.macosx
Message-ID <[email protected]>
On 10.03.2009, at 03:24, Chris Devers wrote:

> This isn't necessarily a Mac-specific question, but I've gotten rusty
> and I'm having a brain fart here.
>
> How can a Perl script reliably, portably resolve the path inside which
> it is running? Not the PWD of the caller, mind you, but the actual
> current full path of the script itself?

[snip]

The core module FindBin does that.  An alternative Dir::Self (newer,  
nicer)
is availablew from CPAN.

Anno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.