good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: delete a fileby kyoshu (Curate) |
on Jun 16, 2005 at 09:15 UTC ( [id://467218]=note: print w/replies, xml ) | Need Help?? |
you do not have the file on the system or you are trying to delete file which you can not delete because of file permisions, or you execute your script from some other directory than ../data/. # mkdir dir # touch dir/file # ls dir/ file # perl -e 'unlink "dir/file" or die "failure\n";' # ls dir/ #
In Section
Seekers of Perl Wisdom
|
|