in reply to Re: Perl Warning Help
in thread Perl Warning Help
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).
|
|---|