in reply to Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
in thread Handling Mac, Unix, Win/DOS newlines at readtime...
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by graff (Chancellor) on Sep 16, 2002 at 04:30 UTC | |
by IlyaM (Parson) on Sep 16, 2002 at 07:58 UTC | |
by bart (Canon) on Sep 17, 2002 at 04:05 UTC | |
Re: Re: Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by hardburn (Abbot) on Sep 16, 2002 at 13:54 UTC | |
by ikegami (Patriarch) on Oct 17, 2007 at 14:29 UTC |
In Section
Seekers of Perl Wisdom