for my $file (qw(files.txt data.txt)) { unlink $file; die "Unable to unlink '$file': $!" if -e $file; }
In reply to Re: Unlinking a file when the file doesnt exist
by moritz
in thread Unlinking a file when the file doesnt exist
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |