Re: chr function on z/OS.

[email protected] (Nick Ing-Simmons)
Newsgroups perl.unicode
Message-ID <[email protected]>
Rajarshi Das <[email protected]> writes:
>Hi,
>
>I have a basic doubt regarding unicode and z/OS
>(ebcdic : ibm-1047).
>
>$a = chr(0x00A1);
>
>$b = chr(0xA1); 
>
>Should $a and $b be equal or yield different results
>on ebcdic ? 

As far as I know they should be the same.
chr() takes a number and the two forms above are the same number.

But "\xa1" and "\x{00a1}"  may differ.

The \x{} style (at least once-upon-a-time) implies Unicode numbering.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.