[Israel.pm] newline character as a portability issue
Shlomo Yona
shlomo at cs.haifa.ac.il
Thu Jul 8 03:38:36 PDT 2004
On Thu, 8 Jul 2004, Jason Elbaum wrote:
[...]
> You're not likely to encounter EBCDIC systems in the wild these days,
> but you do need to consider just how portable you want your code to be.
Bottom line...
say I have a regex pattern:
/\p{InMyCharacterClass}\n\p{InMyOtherCharacterClass}/
and I want this to be portable across systems (I have no
knowledge of the text I'm receiving as input) what should
stand instead of \n in the pattern?
How can I make this platform dependent?
--
Shlomo Yona
shlomo at cs.haifa.ac.il
http://cs.haifa.ac.il/~shlomo/
More information about the Perl
mailing list