On Thu, May 26, 2005 at 05:38:50AM -0500, Peter Rabbitson wrote:
> Is this:
>
> my $path = [File::Spec->splitpath (File::Spec->rel2abs ($0))]->[1];
>
> the only OS independent (unix/win32) way to determine the absolute path of
> the directory which contains the current process, or there is a less cryptic
> way that I am overlooking?
>
My bad, to work on win32 it becomes even more cryptic:
my $path = join ('',@{[File::Spec->splitpath (File::Spec->rel2abs ($0))]}[0,1]);
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>