Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

PerlIO::encoding

Name PerlIO::encoding
Version 0.26
Located at /usr/lib64/perl5
File /usr/lib64/perl5/PerlIO/encoding.pm
Is Core Yes
Search CPAN for this module PerlIO::encoding
Documentation PerlIO::encoding
Module Details PerlIO::encoding

NAME

PerlIO::encoding - encoding layer


SYNOPSIS

  use PerlIO::encoding;
  open($f, "<:encoding(foo)", "infoo");
  open($f, ">:encoding(bar)", "outbar");
  use Encode qw(:fallbacks);
  $PerlIO::encoding::fallback = FB_PERLQQ;


DESCRIPTION

This PerlIO layer opens a filehandle with a transparent encoding filter.

On input, it converts the bytes expected to be in the specified character set and encoding to Perl string data (Unicode and Perl's internal Unicode encoding, UTF-8). On output, it converts Perl string data into the specified character set and encoding.

When the layer is pushed, the current value of $PerlIO::encoding::fallback is saved and used as the CHECK argument when calling the Encode methods encode() and decode().


SEE ALSO

open, Encode, perlfunc/binmode, perluniintro

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024