in reply to save read-only Excel

Maybe something like this is all you need now?

my $file = cwd.'\\'."myexcel.xlsm" ; unlink $file if -e $file; die "$file already exists!\n" if -e $file;