in reply to
Restrict encoding of std streams to lexical scope
You can write your own wrapper for print() and use %^H (see perlvar) to control behaviour in lexical scopes.
Comment on
Re: Restrict encoding of std streams to lexical scope
In Section
Seekers of Perl Wisdom