my $setReadOnlyAttribute = READONLY; # set file attributes to allow editing Win32::File::SetAttributes($file, $setReadOnlyAttribute);