http://www.perlmonks.org?node_id=636904


in reply to Re^2: Best way to write in Perl
in thread Best way to write in Perl

Actually, just specifying -i will work on most platforms. Cf perldiag :
Can’t do inplace edit without backup (F) You’re on a system such as MS-DOS that gets confused if + you try reading from a deleted (but still opened) file. You have t +o say "-i.bak", or some such.