As is, the behaviour makes it impossible to safely rename a file.It makes it harder, at least:
I can't recall how to do this to the CORE, perhaps someone will remind me?sub myrename { my $rename = ( $^O eq 'MSWin32' ) ? 'move -y' : 'mv -i'; `$rename @_[0,1]`; return $!; } myrename('abc','def') or die $!;
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^3: A DWIM too far?
by QM
in thread A DWIM too far?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |