The stupid question is the question not asked | |
PerlMonks |
Re^5: A DWIM too far?by mpeppler (Vicar) |
on Jun 18, 2004 at 14:07 UTC ( [id://367950]=note: print w/replies, xml ) | Need Help?? |
Personally I would prefer rename to fail by default with an option to overwrite. It would make my code more robust.You'd still get the race condition, unless the underlying C API call was atomic - and we've seen that in a lot of cases this isn't the case (i.e. you'd first have to check for the file's existence, hence the race condition.) Michael
In Section
Meditations
|
|