Do you know where your variables are? | |
PerlMonks |
Re: Correct code for deleting old file?by rovf (Priest) |
on Jun 15, 2012 at 10:57 UTC ( [id://976412]=note: print w/replies, xml ) | Need Help?? |
If you don't check the result of unlink (i.e. whether it works or not), you can equally well omit the test for existence. Hence, I would write it either as or as
-- Ronald Fischer <ynnor@mm.st>
In Section
Seekers of Perl Wisdom
|
|