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 ...
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (292 votes). Check out past polls.