in reply to Adding periord to the end of line

If FILE is the file in question and you have opened it, this should work:
while (<FILE>) { chomp; /\.$/ or print $_.".\n"; }