in reply to Unlink not deleting, Threading issue?
I would start by checking $! for an error message.
Time flies when you don't know what you're doing