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

Re: -l on win32, VMS etc

Thread Previous | Thread Next
March 26, 2014 13:09
Re: -l on win32, VMS etc
Message ID:
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.


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