http://qs321.pair.com?node_id=550850


in reply to Reading in a file not recognizing lines

Or use the PerlIO layer. The code bellow is fof MS-DOS files, not sure if a layer exists for OSX.
use PerlIO ; open F, '<:crlf', 'data' ;
;