in reply to unlink problem

This could be a couple of things. First off, are you sure that there really isn't another process using the file? If not that, I wonder if it might be an off-by-one type problem with your algorithm. How does it go? Is it like:

foreach $file (@files) { open FILE, $file; . . . close FILE; unlink $file; }

or is it something else? Just out of curiosity, is it always the same file that cannot be deleted or is it the last file that you access? If the latter is the case, I'd look for an algorithm problem. Perhaps you could post your code here( and be sure to use <code> tags around it).

~CS