in reply to Re: How to get a true canonical path
in thread How to get a true canonical path

Thanks - Look like it will do the trick. I need to check VMS though.

One thing I have noticed is that the directory must exist - and must actually be a directory. Feeding a file to Cwd::abs_path causes it to carp with "Not a directory".

--
I'm Not Just Another Perl Hacker

Replies are listed 'Best First'.
Re^3: How to get a true canonical path
by eserte (Deacon) on Jun 09, 2004 at 16:55 UTC
    Not on my system (perl5.8.0):
    $ perl -MCwd=abs_path -e 'warn abs_path("$ENV{HOME}/../slavenr/.cshrc" +)' /home/slavenr/.cshrc at -e line 1.