Dick Hardt writes:
: I don't think that is necessary, I think the 'right' thing happens already.
:
: sub abc {
: # we are in the mode of who called us;
: # code here
: }
:
: {
: use utf8;
: abc(); # abc() will be run with utf8==TRUE
: }
: {
: no utf8;
: abc(); # abc() will be run with utf8==FALSE
: }
:
: So if you are dealing with characters, there are no problems, you will be
: in the mode of the caller.
Er, nope, that's not what happens. You're confusing dynamic scoping with
lexical scoping. sub abc will always execute in 'no utf8', unless it's
in the *lexical* scope of a 'use utf8' declaration.
Larry