PerlIO::locale - PerlIO layer to use the encoding of the current locale


PerlIO-locale documentation Contained in the PerlIO-locale distribution.

Index


Code Index:

NAME

Top

PerlIO::locale - PerlIO layer to use the encoding of the current locale

VERSION

Top

0.07

SYNOPSIS

Top

    use PerlIO::locale;
    open my $filehandle, '<:locale', $filename or die $!;

DESCRIPTION

Top

This is mostly a per-filehandle version of the open pragma, when used under the form

    use open ':locale';

The encoding for the opened file will be set to the encoding corresponding to the locale currently in effect, if perl can guess it.

AUTHOR

Top

Copyright (c) 2004, 2005, 2007, 2008, 2011 Rafael Garcia-Suarez <rgs@consttype.org>, rewritten by Leon Timmermans <leont@cpan.org>

LICENSE

Top

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

SOURCE

Top

A git repository for the sources is at https://github.com/rgs/PerlIO-locale.

SEE ALSO

Top

* open.
* PerlIO::encoding

PerlIO-locale documentation Contained in the PerlIO-locale distribution.

package PerlIO::locale;

use 5.008;
use strict;
use XSLoader;
use PerlIO::encoding;
our $VERSION = '0.08';

XSLoader::load('PerlIO::locale', $VERSION);

1;

__END__