And use the "$!" part since that will give you the file-system error.unlink "$dirpath/$filename" or die "can't unlink $dirpath/$filename: $ +!";
In reply to Re^3: Deleting a File
by Joost
in thread Deleting a File
by phimtau123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |