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 electronic device
Being the designated driver
Spending time with a celebrity
I never won anything
I never play the lottery
I haven't checked my spam folder recently
Results (428 votes). Check out past polls.