in reply to How to remove COMPRESSED attribute with Win32::File?

I suppose you'll need to remove just the COMPRESSED bit, and leave the rest of $attr as it is:

... $attr &= ~COMPRESSED; Win32::File::SetAttributes($path, $attr);

BTW, for instructive purposes, you can visualize the bits with

print unpack("B*", pack("N", $attr)), "\n"; # or printf "%032b\n", $attr;