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