in reply to Re: skip newline charater when reading
in thread skip newline charater when reading

chomp will try to remove the input record separator $/.

$_ may have embedded "\n". The chomp approach does not deal with this issue.