From: Matt Sergeant Date: Mon, 10 Sep 2001 15:24:01 +0000 (+0100) Subject: Encode.pm docs fix X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=14bf678466e32b2037048e39113c054405426688;p=p5sagit%2Fp5-mst-13.2.git Encode.pm docs fix Message-ID: <315E8A8BF9D1D411AD3D00508BB1B0C004B90035@UKS040> p4raw-id: //depot/perl@11980 --- diff --git a/ext/Encode/Encode.pm b/ext/Encode/Encode.pm index b84623a..6a297a3 100644 --- a/ext/Encode/Encode.pm +++ b/ext/Encode/Encode.pm @@ -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.