1Filter::Encoding(3) User Contributed Perl Documentation Filter::Encoding(3)
2
3
4
6 Filter::Encoding - Write your script in any encoding
7
9 Version 0.01
10
12 use Filter::Encoding 'MacRoman';
13 # Code that follows can be written in MacRoman encoding.
14
16 This module allows your code to be written in any ASCII-based encoding.
17 Just pass the name of the encoding as an argument to "use
18 Filter::Encoding". The source code will be decoded and treated as
19 though it had been written in UTF-8 with "use utf8" in effect. That's
20 all this module does.
21
22 It is intended as a simpler, saner replacement for encoding.pm, one
23 that does not change the up- and downgrading of strings or touch your
24 file handles.
25
27 Too many arguments to Filter::Encoding->import()
28 "use Filter::Encoding" (which implies "->import") only allows one
29 argument.
30
31 Filter::Encoding: Unknown encoding '%s'
32 The encoding must be one recognized by the "Encode" module.
33
35 perl 5.8.0 or later
36
38 Copyright (C) 2016 Father Chrysostomos <sprout [at] cpan [dot] org>
39
40 This program is free software; you may redistribute it, modify it, or
41 both under the same terms as perl.
42
44 Much of the code was based on the filter feature of encoding.pm.
45
47 Encode, encoding
48
50 Hey! The above document had some coding errors, which are explained
51 below:
52
53 Around line 71:
54 '=item' outside of any '=over'
55
56 Around line 80:
57 You forgot a '=back' before '=head1'
58
59
60
61perl v5.34.0 2021-07-22 Filter::Encoding(3)