in reply to Reading in a file not recognizing lines

Mac OS (well, at least older Mac OS) use(s|d) \x0d to represent end of line, so your file probably came from there or hopped through there without proper translation. You could:

Also: see perlport for the section on "Newlines".

Replies are listed 'Best First'.
Re^2: Reading in a file not recognizing lines
by bradcathey (Prior) on May 22, 2006 at 11:24 UTC

    Fetch, thanks. Great insight: was using an old OS9 program to generate tab-delimited conversion for transport to web.

    Embarrassingly, I've never worked with $/. Thanks for the nudge.


    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot