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 ...
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (270 votes). Check out past polls.