in reply to DBI and PP not behaving...
Or variantly,1 while unlink($filename);
However, that kind of loop appears a bit dangerous if you're not sure that unlink() will always eventually return FALSE or remove all versions of that file.unlink($filename) while -f $filename;
It SOUNDS like that's the kind of bug the -C cleanup code is introducing here. If the file is still open, then going into one of those loops would have the behavior you're experiencing. I haven't dug into pp's code, though, to be sure of it.
[ e d @ h a l l e y . c c ]