while () { chomp; /\.$/ or print $_.".\n"; }