absolute path of current process
- From: rabbit@xxxxxxxxx (Peter Rabbitson)
- Date: Thu, 26 May 2005 05:38:50 -0500
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 somebody tinkers with $0, but this is
not relevant to my situation.
Thanks
Peter
.
- Follow-Ups:
- Re: absolute path of current process
- From: Offer Kaye
- Re: absolute path of current process
- From: Peter Rabbitson
- Re: absolute path of current process
- Prev by Date: Re: How to upgrade local module using -MCPAN?
- Next by Date: Re: absolute path of current process
- Previous by thread: open file failed
- Next by thread: Re: absolute path of current process
- Index(es):
Relevant Pages
|