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 ...
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (191 votes). Check out past polls.