in reply to Re: Trying to understand behavior of split and perl in general with UTF-8
in thread Trying to understand behavior of split and perl in general with UTF-8
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trying to understand behavior of split and perl in general with UTF-8
by almut (Canon) on Jun 17, 2010 at 20:42 UTC | |
by hdv.jadev (Novice) on Jun 18, 2010 at 11:02 UTC | |
|
Re^3: Trying to understand behavior of split and perl in general with UTF-8
by hdv.jadev (Novice) on Jul 22, 2010 at 12:16 UTC |