In the thread at Copying a file to a temporary file, I made the (embarrasing) assumption that rename $oldname, $newname; would fail if a file called $newname already existed.
It came as a complete shock to me that perl's built-in rename will silently delete the existing file if $newname exists.
Two questions
In reply to A DWIM too far? by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |