in reply to
Stripping dots
% perl -pi.bak -e 's/\.$//' file1 file2 ...
[download]
Take a look at
perlrun
for the command line options (in place editing), and
perlre
for the regex issues.
Comment on
Re: Stripping dots
Download
Code
In Section
Seekers of Perl Wisdom