Filter::Encoding(3)
π Filter::Encoding β the manual, but make it cute π
okay so bestie, this is the Filter::Encoding(3) page from the User Contributed Perl Documentation, and I'm about to make it make sense to you. Sit down, grab a snack π, we're doing this.
β¨ NAME β¨
Filter::Encoding β Write your script in any encoding π
Like. Any. Encoding. Your script, your rules, your vibe. π
πΈ VERSION πΈ
Version 0.01 β baby's first release, and she ate. π
π¦ SYNOPSIS π¦
use Filter::Encoding 'MacRoman';
# Code that follows can be written in MacRoman encoding.
That's it. That's the whole thing. No cap. β¨
π DESCRIPTION π
So here's the tea β: this module lets your code be written in any ASCII-based encoding. You just pass the name of the encoding as an argument to use Filter::Encoding, and boom π₯ β your source code gets decoded and treated as though it had been written in UTF-8 with use utf8 in effect.
And that's literally all this module does. It's not doing side quests. It's not being extra. It's giving minimal, focused, main character energy. π
It's intended as a simpler, saner replacement for encoding.pm β one that does not change the up- and downgrading of strings, and does not touch your file handles. Periodt. π«Ά
π DIAGNOSTICS π
Yes bestie, sometimes things go wrong. Here's what the module yells at you about:
Too many arguments to Filter::Encoding->import()βuse Filter::Encoding(which implies->import) only allows one argument. One. Uno. Singular. Don't be greedy. πFilter::Encoding: Unknown encoding '%s'β the encoding has to be one recognized by theEncodemodule. IfEncodedoesn't know her, we don't know her either. π
π PREREQUISITES π
perl 5.8.0or later β
Old perl? Not invited to the party. Sorry not sorry.
π AUTHOR & COPYRIGHT π
Copyright (C) 2016 Father Chrysostomos <sprout [at] cpan [dot] org>
This program is free software; you may redistribute it, modify it, or both under the same terms as perl. π«Ά
π§ ACKNOWLEDGEMENTS π§
Much of the code was based on the filter feature of encoding.pm. Shoutout to the ancestors. π
π₯ SEE ALSO π₯
Encodeencoding
Go read those too, iykyk. π
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 71:
'=item' outside of any '=over'
Around line 80:
You forgot a'=back'before a'=head1'
Not me exposing the pod's messy era π β but fr fr, those are the actual errors, we don't hide them here.
And that's the whole page, bestie. This was perl v5.42.0, dated 2025-07-25, filed under Filter::Encoding(3) β mwah π, go write some encoded code, you icon. πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Filter-Encoding 0.01-27.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms