I need to clear the read-only flag of a file in my Perl program that runs on Windows.
I know system('attrib -r $filename') would work, but I was wondering if there is no built-in option in Perl to do it. chmod 777, $filename doesn’t seem to work.
Thanks,
splintor
Try
chmod 0777, $filename. You need the permissions in octal notation.