Encode.pm docs fix
Matt Sergeant [Mon, 10 Sep 2001 15:24:01 +0000 (16:24 +0100)]
Message-ID: <315E8A8BF9D1D411AD3D00508BB1B0C004B90035@UKS040>

p4raw-id: //depot/perl@11980

ext/Encode/Encode.pm

index b84623a..6a297a3 100644 (file)
@@ -667,11 +667,11 @@ can be considered as being in this form without encoding. An encoding
 to transfer strings in this form (e.g. to write them to a file) would
 need to
 
-     pack('L',map(chr($_),split(//,$string)));   # native
+     pack('L',map(ord($_),split(//,$string)));   # native
   or
-     pack('V',map(chr($_),split(//,$string)));   # little-endian
+     pack('V',map(ord($_),split(//,$string)));   # little-endian
   or
-     pack('N',map(chr($_),split(//,$string)));   # big-endian
+     pack('N',map(ord($_),split(//,$string)));   # big-endian
 
 depending on the endian required.