Encode::encode_list ?

2007-11-12 Thread E R
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); ???

silent upgrading situations

2007-11-12 Thread E R
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

Re: silent upgrading situations

2007-11-12 Thread Juerd Waalboer
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