PerlIO::locale - PerlIO layer to use the encoding of the current locale
0.07
use PerlIO::locale; open my $filehandle, '<:locale', $filename or die $!;
This is mostly a per-filehandle version of the open pragma, when used under the form
open
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.
Copyright (c) 2004, 2005, 2007, 2008, 2011, 2014 Rafael Garcia-Suarez <rgs@consttype.org>, rewritten by Leon Timmermans <leont@cpan.org>
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
A git repository for the sources is at https://github.com/rgs/PerlIO-locale.
PerlIO::encoding
I18N::Langinfo
To install PerlIO::locale, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlIO::locale
CPAN shell
perl -MCPAN -e shell install PerlIO::locale
For more information on module installation, please visit the detailed CPAN module installation guide.