Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
but what if a file was created on a Windows machine, but this code was being run on a Mac?
I remember reading somewhere in this thread that \r and \n have reversed semantics on the Mac (vs. *nix, Windows). So maybe we really want the following: split(/ \r\n | \n\r | \r | \n /x); # (yoicks!) My $0.02, -- jkahn In reply to Re: Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by jkahn
|
|