I'm using Encode::encode() a lot, especially with lists as in:
@encoded = map { Encode::encode($encoding, $_) } @text;
Is there a way to make this more efficient, like perhaps with:
@encoded = Encode::encode_list($encoding, @text);
???
I was wondering if there any other good examples of when Perl will
silently upgrade
(as in utf8::upgrade) a string. For instance, perl will do this when
you concatenate
a "non-utf8" string with a utf8 string:
$a = "Hello"; # utf8 flag not set
$b = chr(1024);
$a .= $b; # $a now has it
E R skribis 2007-11-12 14:00 (-0600):
> Are there any other examples? I'm especially interested in cases where
> the non-utf8 string gets upgraded but actually doesn't change.
Although I strongly recommend against fussing over the internal
encoding except for performance reasons, encoding::warning