$! check the return value. As noted this is probably a permissions issue. Check the helpful me$!$!age. Make sure you have printed a header then.....
for my $file (@filelist) { unlink $file or print "<p>Unable to delete $file. Reason $!\n"; }
In reply to Re: Delete files with Perl in Windows
by tachyon-II
in thread Delete files with Perl in Windows
by whnwhrwhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |