Re: absolute path of current process

2005-05-28 Thread Peter Rabbitson
On Thu, May 26, 2005 at 02:26:29PM +0300, Offer Kaye wrote: > On 5/26/05, Peter Rabbitson <[EMAIL PROTECTED]> 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

Re: absolute path of current process

2005-05-26 Thread Offer Kaye
On 5/26/05, Peter Rabbitson <[EMAIL PROTECTED]> 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 >

Re: absolute path of current process

2005-05-26 Thread Paul Johnson
On Thu, May 26, 2005 at 05:48:41AM -0500, Peter Rabbitson wrote: > 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

Re: absolute path of current process

2005-05-26 Thread Peter Rabbitson
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 les

absolute path of current process

2005-05-26 Thread Peter Rabbitson
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? P.S. I know the above will not work if