while () { chomp; next if(m/\.$/); print "$_.\n"; }