in reply to Stripping dots

% perl -pi.bak -e 's/\.$//' file1 file2 ...
Take a look at perlrun for the command line options (in place editing), and perlre for the regex issues.