in reply to Re: New Line at End File
in thread New Line at End File

The special variable $^I not only turns in-place editing on, it also specifies the extension for a backup of the original file. Something like $^I = '.bak' might be better than setting it to '1'. If you really don't want the backup you can set it to an empty string; in-place editing is on unless the variable is undefined.

-sauoq
"My two cents aren't worth a dime.";