Subject: | Add documentation for LEAVE_SRC |
There is no documentation for the LEAVE_SRC flag to CHECK. This patch
adds it. I was on IRC the other day when someone did not understand
why his decode($enc, $string, 1) call assigned to $string.
Regards,
Shlomi Fish
Subject: | Encode.pm-document-LEAVE_SRC.diff |
--- Encode.pm.orig 2006-12-10 16:59:21.368322807 +0200
+++ Encode.pm 2006-12-10 17:19:13.200241440 +0200
@@ -657,6 +657,12 @@
HTMLCREF 0x0200
XMLCREF 0x0400
+=item Encode::LEAVE_SRC
+
+If the C<Encode::LEAVE_SRC> bit is not set, but I<CHECK> is, then the second
+argument to C<encode()> or C<decode()> may be assigned to by the functions. If
+you're not interested in this, then bitwise-or the bitmask with it.
+
=back
=head2 coderef for CHECK