in reply to Re^2: Reading text file with <CR> line endings
in thread Reading text file with <CR> line endings

Setting $/ explicitly to the Mac line ending should be easier.*

Both readline and chomp will respect it

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

update

*) see also haukex's code at the end of Re: Reading text file with <CR> line endings

  • Comment on Re^3: Reading text file with <CR> line endings