S
Shea Martin
Using build 809, on winxp pro.
Win32::File::GetAttributes("somefile.txt", \$attrib);
Win32::File::SetAttributes("somefile.txt", $attrib|READONLY)
|| die "failed to set attribute";
But it does not work. If I manually set the file to readonly, then run
this code on it, it actually removes the readonly attribute, when I
would expect it to do nothing.
Is this a known bug, or am I doing something wrong.
chmod(0444, "somefile.txt) does work.
~S
Win32::File::GetAttributes("somefile.txt", \$attrib);
Win32::File::SetAttributes("somefile.txt", $attrib|READONLY)
|| die "failed to set attribute";
But it does not work. If I manually set the file to readonly, then run
this code on it, it actually removes the readonly attribute, when I
would expect it to do nothing.
Is this a known bug, or am I doing something wrong.
chmod(0444, "somefile.txt) does work.
~S