Additional note on the encoding example: one cannot
Jarkko Hietaniemi [Wed, 2 May 2001 11:48:18 +0000 (11:48 +0000)]
convert string constants in-place.

p4raw-id: //depot/perl@9954

ext/Encode/Encode.pm

index 3792324..9bdc041 100644 (file)
@@ -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