my $found = substr $tmp, rindex($tmp, "\n")+1; print "$found\n";