in reply to Re: the chomp does not seem to workin thread the chomp does not seem to work
That's why I usually use $line=~tr/\015\012//d.
This removes any CR and LF from $line. It works fine as long as you don't care for empty lines.