Try unlink
unlink $fn;
Addendum: Does $fn ever have spaces or forward slashes in it? If so, I'd guess that's what's causing your problems handing it off to system.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re^2: Perl Warning Help
by xdg
in thread Perl Warning Help
by Arcane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |