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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to