NAME

encoding::split - Like encoding, but affecting only STDIO, or only source.

SYNOPSIS

use encoding::source "latin-1";
use encoding::stdio  ":locale";

DESCRIPTION

The encoding pragma assumes that the development environment and the environment in which the program will run, use the same character encoding. Typically, they will be different, but unfortunately, it's too late to change things now.

It's not too late to remedy it in another way. encoding::split provides two alternative pragmas, that function like encoding, but affect only one aspect.

Modules

encoding::source

Only installs the source filter to interpret your source code under a different character set, while leaving STDOUT and STDIN intact.

encoding::stdio

Only installs the PerlIO :encoding layers on STDOUT and STDIN, without installing a source filter.

RELIABILITY

These modules are a proof of concept. It should work, but may not be compatible with Perl 5.9's new lexical encoding pragma.

AUTHOR

Juerd Waalboer <juerd@cpan.org>

SEE ALSO

encoding