-
-
25 Sep 2015 11:43:40 UTC
- Distribution: encoding-source
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (509 / 129 / 7)
- Kwalitee
Bus factor: 1- 84.29% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (6.07KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Encode
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
encoding::source - allows you to write your script in non-ascii or non-utf8
DEPRECATION NOTICE
NOTE: This module relies on the internal perl variable
${^ENCODING}
, which is deprecated in perl 5.22.0. In this perl version theencoding
pragma has been made lexical, which removes the usefulness of this module.SYNOPSIS
use encoding::source 'utf8'; no encoding::source; # back to latin-1 { use encoding::source 'utf8'; # ... } # back to latin-1
DESCRIPTION
This pragma allows to change the default encoding for string literals in the current lexical compilation unit (block or file).
This is like the
encoding
pragma (pre-5.22.0), but done right:It doesn't mess with the STDIN and STDOUT filehandles.
It's lexically scoped and its effect doesn't leak into other files.
SEE ALSO
COPYRIGHT
(c) Copyright 2007 by Rafael Garcia-Suarez.
Most test files are adapted from the tests of
encoding
, maintained by Dan Kogai as part of theEncode
distribution.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install encoding::source, copy and paste the appropriate command in to your terminal.
cpanm encoding::source
perl -MCPAN -e shell install encoding::source
For more information on module installation, please visit the detailed CPAN module installation guide.