in reply to $SIG{INT} unlink problem

Did you stop LWP download before unlinking the file? If you didn't than the file might still be open, and then it can't be unlinked.

In order to check this, try to unlink the file "by hand", while LWP is running. You might have to kill the LWP process first.

Replies are listed 'Best First'.
Re^2: $SIG{INT} unlink problem
by Aristotle (Chancellor) on Aug 21, 2002 at 01:03 UTC
    You can quite well unlink an open file on Unix without closing it. That's often useful for temporary files; the file hangs around as long as it's open, even if there's no directory entry for it anymore. As soon as all the handles on it are closed, it disappears in the bit bucket.

    Makeshifts last the longest.

Re: Re: $SIG{INT} unlink problem
by sauoq (Abbot) on Aug 21, 2002 at 01:02 UTC
    This may be true on Windows. It's not true on Solaris. You can unlink an open file.
    -sauoq
    "My two cents aren't worth a dime.";