Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Re: Re: File::Copy dying on Win2k when target file already there

by John M. Dlugosz (Monsignor)
on Jan 17, 2003 at 16:48 UTC ( [id://227724]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: File::Copy dying on Win2k when target file already there
in thread File::Copy dying on Win2k when target file already there

I guess the chmod on Windows is using the "word" write bit as the single read-only flag.

You could conditionally note the value to use, once:

use constant ROFLAG => $^O eq 'MSWin32' ? 0444 : 0644;
and then use that constant in your code.

I don't know what you mean about typing :w.

—John

  • Comment on Re: Re: Re: Re: Re: File::Copy dying on Win2k when target file already there
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://227724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-06-24 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.