X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlunicode.pod;h=c9954d8e96a81e4a63effb485e8b22f9eeb08230;hb=22d4bb9ccb8701e68f9243547d7e3a3c55f70908;hp=c6866617a29d3187cb2b52d1bc6c852f028bd005;hpb=4b19af017623bfa3bb72bb164598a517f586e0d3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlunicode.pod b/pod/perlunicode.pod index c686661..c9954d8 100644 --- a/pod/perlunicode.pod +++ b/pod/perlunicode.pod @@ -157,20 +157,10 @@ C<(?:\PM\pM*)>. =item * -The C operator translates characters instead of bytes. It can also -be forced to translate between 8-bit codes and UTF-8. For instance, if you -know your input in Latin-1, you can say: - - while (<>) { - tr/\0-\xff//CU; # latin1 char to utf8 - ... - } - -Similarly you could translate your output with - - tr/\0-\x{ff}//UC; # utf8 to latin1 char - -No, C doesn't take /U or /C (yet?). +The C operator translates characters instead of bytes. Note +that the C functionality has been removed, as the interface +was a mistake. For similar functionality see pack('U0', ...) and +pack('C0', ...). =item *