Well, I don't do Windows, but I'm pretty sure it would be better to use the inbuilt unlink command instead of system.
if (-e $fn) { unlink $fn or die "Can't remove $fn"; }
Note that this will not work on directories (use rmdir for that).
In reply to Re^2: Perl Warning Help
by tirwhan
in thread Perl Warning Help
by Arcane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |