P is for Practical | |
PerlMonks |
Re: delete fileby moritz (Cardinal) |
on Aug 01, 2011 at 10:26 UTC ( [id://917806]=note: print w/replies, xml ) | Need Help?? |
unlink($file) or die "Cannot unlike '$file': $!;
Always check the return value of functions that can go wrong, or let autodie do it for you.
In Section
Seekers of Perl Wisdom
|
|