Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Perl Best Practices book: is this one a best practice or a dodgy practice? (atomic rename)

by tye (Cardinal)
on Sep 03, 2005 at 19:28 UTC ( #488964=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Perl Best Practices book: is this one a best practice or a dodgy practice?
in thread Perl Best Practices book: is this one a best practice or a dodgy practice?

Bear in mind though that an "atomic rename" isn't really atomic under most filesystems

rename is atomic on POSIX systems. Win32 has atomic rename and I just checked and rename uses it on modern Win32 operating systems. That qualifies as "most" of the Perl universe in my book (covering the two most common Perl environments, even if TheDamian chooses to call one of the top two "obscure"). Perhaps you have evidence to the contrary or perhaps you are thinking of pre-rename methods using link/unlink?

- tye        


Comment on Re^4: Perl Best Practices book: is this one a best practice or a dodgy practice? (atomic rename)
Re^5: Perl Best Practices book: is this one a best practice or a dodgy practice? (atomic rename)
by TheDamian (Priest) on Sep 03, 2005 at 21:22 UTC
    My mistake. I hadn't realized we were talking about "atomic rename(1)", rather than more general renaming (such as link/unlink sequences). Sorry for the confusion.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-04-19 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls