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

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

Thread Previous | Thread Next
From:
Ken Williams
Date:
June 12, 2008 20:29
Subject:
Re: Cwd::abs_path behavior with non-existant paths
Message ID:
6a7ee8cc0806122029r4736cad6mfa16896670d26e63@mail.gmail.com
On Thu, Jun 12, 2008 at 9:19 PM, John E. Malmberg <wb8tyw@qsl.net> 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.

 -Ken

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About