Re: perl and line endings...

2008-10-12 Thread Juerd Waalboer
Michael G Schwern skribis 2008-10-11 9:58 (-0400): So you really believe there's still at least one EBCDIC perl user out there? Frighteningly enough, yes. Some guys at IBM in China. http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2007-11/msg00265.html

Re: perl and line endings...

2008-10-12 Thread Aristotle Pagaltzis
* Joshua Juran jju...@gmail.com [2008-10-11 21:15]: On Oct 11, 2008, at 6:15 AM, Aristotle Pagaltzis wrote: But `\n` always means *exactly one character* which on ASCII systems is always `\x0a`. [citation needed] #!/usr/bin/perl foreach ( @ARGV ) { s{ [\] n }{ \r }gx;