From: Jarkko Hietaniemi Date: Wed, 2 May 2001 11:48:18 +0000 (+0000) Subject: Additional note on the encoding example: one cannot X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab97ca19a0faaf069d944477e55729b6e85238c2;p=p5sagit%2Fp5-mst-13.2.git Additional note on the encoding example: one cannot convert string constants in-place. p4raw-id: //depot/perl@9954 --- diff --git a/ext/Encode/Encode.pm b/ext/Encode/Encode.pm index 3792324..9bdc041 100644 --- a/ext/Encode/Encode.pm +++ b/ext/Encode/Encode.pm @@ -537,6 +537,9 @@ and to convert it back: from_to($data, "utf-8", "iso-8859-1"); +Note that because the conversion happens in place, the data to be +converted cannot be a string constant, it must be a scalar variable. + =back =head2 Handling Malformed Data