in reply to How to chomp the last new line character from the file
Here is one way:
perl -i -pe 'chomp if eof' file1 file2 ...
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (256 votes). Check out past polls.