while () { my $entry=$_; $entry =~ s/[\n\r]//g; }