[Israel.pm] newline character as a portability issue
Shlomo Yona
shlomo at cs.haifa.ac.il
Wed Jul 7 21:50:24 PDT 2004
On Thu, 8 Jul 2004, Dovalle Yankelovich wrote:
> I think the ASCII codes 13, 10 (carriage return and new line
> respectively) should be 'cross platform', so instead using shorts (such
> as '\n') add these 2 chars to your output.
This probably isn't exactly accurate.
perldoc perlport also mentions \015 and \012...
So -- apparently, this is indeed something which requires
some general handling rather than simply betting on the
correct character...
--
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/
More information about the Perl
mailing list