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

Download:
encoding-source-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

encoding::source - allows you to write your script in non-ascii or non-utf8

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, 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: