Ah, I think I know where I went of the cliff now.
"use utf8" is only for the source itself, not for any character streams coming in or going out. For that I have to explicitly state the encoding. It seems I did not truly realize that perl has an internal way of using UTF-8 that has nothing to do with what encoding the shell is using. Am I correct in this assumption?
With what you and almut told me I got the example code working in a few seconds, so that gives me some hope I do understand at least somewhat better now.
Thanks very much for helping me renew my mastery of perl!
In reply to Re^2: Trying to understand behavior of split and perl in general with UTF-8
by hdv.jadev
in thread Trying to understand behavior of split and perl in general with UTF-8
by hdv.jadev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |