http://qs321.pair.com?node_id=467211

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I need to delete a file before executing a script. The file itself is recreated by the script using the filehandle >>. However, when i try to unlink the file, the error "No such file or directory" is printed. The file does though exist?
unlink "data/remove.txt" or die "unable to delete $!";