$line =~ s/.\n?$//;