![]() |
perl-unicode
|
Re: Should Encode::encode affect the original string? -- Solved!2007-07-07 06:34:30On Fri, Jul 06, 2007 at 09:06:20AM -0400, Stephen J. Smith wrote:
Looking over the Encode.pm source I spotted LEAVE_SRC, which I then
found in the documentation. Set it if you want the original scalar left
alone:
$ perl -M'Encode ":fallback_all"' -e '$s='hi';Encode::encode("UTF-8",
$s, Encode::FB_CROAK | Encode::LEAVE_SRC);print "($s)\n"'
(hi)
-Stephen
|
|
||||||||||||