in reply to Deleting files problem

You should Check what you get back from unlink.
unlink 'foo' or die "Delete of foo failed - $!";
To unlink a file you will need write permissions for the directory it is in so that will be the best thing for you to check.

Replies are listed 'Best First'.
Re: Re: Deleting files problem
by Anonymous Monk on Jun 23, 2003 at 13:53 UTC
    Bizarrely, after adding an "or die" statement, its not dying (as it wasnt before), but now it is deleting the file.

    How oddbr>
    Cheers for your help guys.