develooper Front page | perl.perl5.porters | Postings from June 2008

Re: Cwd::abs_path behavior with non-existant paths

Thread Previous | Thread Next
Ken Williams
June 12, 2008 20:29
Re: Cwd::abs_path behavior with non-existant paths
Message ID:
On Thu, Jun 12, 2008 at 9:19 PM, John E. Malmberg <> wrote:
> perl -mCwd -e "print Cwd::abs_path('foo/non-existant.file')"
> perl -mCwd -e "print Cwd::abs_path('/foo/non-existant.file')"
> perl -mCwd -e "print Cwd::abs_path('non-existant.file')"
> [...]
> On UNIX, the foo/non-existant.file returns nothing, but the other two return
> the same as the input.

Actually, on my Mac OS X install the first two return nothing and the
last one returns the absolute form of the input.

I tested under both 3.21 and 3.2701, same results.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About