in reply to Delete txt file in a previous file
Two suggestions: use strict; and use or die ... rather than || die
Also, how is this supposed to work? Files generally can't be deleted twice.
unlink("$3"); if (unlink($3) == 0)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Delete txt file in a previous file
by stavros (Novice) on Aug 10, 2011 at 19:23 UTC |