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 ...
An organised event
A traditional gathering
With family and friends
I don't celebrate the New Year
Adjusting my clocks for the Leap Second
I can't remember
Results (256 votes). Check out past polls.