Rafaël Garcia-Suarez > encoding-source > encoding::source

Download:
encoding-source-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.03   Source  

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 the encoding 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:

SEE ALSO ^

Encode, encoding

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 the Encode distribution.

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

syntax highlighting: