develooper Front page | perl.perl5.porters | Postings from March 2014

Re: -l on win32, VMS etc

Thread Previous | Thread Next
From:
Zefram
Date:
March 26, 2014 13:09
Subject:
Re: -l on win32, VMS etc
Message ID:
20140326130855.GM18071@fysh.org
Dave Mitchell wrote:
>and I want to change it to 
>
>    chmod 0666, $file unless -l $file;
>    unlink $file;

That wouldn't be correct: it still screws up on hard links.  Long-standing
problem [perl #72028].

>I'm wondering whether I can rely on -l always being false on platforms
>that don't support symlinks?

Yes, you can.

-zefram

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