Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: DBI and PP not behaving...

by halley (Prior)
on May 04, 2005 at 15:03 UTC ( #453980=note: print w/replies, xml ) Need Help??

in reply to DBI and PP not behaving...

Due to some systems like VMS, the "sanctioned" idiom for deleting files is like:
1 while unlink($filename);
Or variantly,
unlink($filename) while -f $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.

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 ]

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453980]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-10-22 17:24 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (85 votes). Check out past polls.