Dist::Z...Encoding(3)
π Dist::Zilla::Plugin::Encoding π
okay so bestie, welcome to the Dist::Zilla::Plugin::Encoding page β it lives in the User Contributed Perl Documentation section, and it's here to solve a very specific little problem for you. no cap.
β¨ VERSION β¨
version 6.040 β yes she's got a number, she's official.
πΈ NAME πΈ
Dist::Zilla::Plugin::Encoding β she sets the encoding of arbitrary files. literally that's the whole job. iconic.
π¦ SYNOPSIS π¦
okay so here's the tea: this plugin lets you explicitly set the encoding on some files in your distribution. not all of them, not vibes-based, just the ones you pick. and you've got two ways to pick them:
- you can spell out the exact set of files (with the
filenamesparameter), or - you can hand over some regular expressions to check (using
match).
either way, you're the main character here. π
In your dist.ini:
[Encoding]
encoding = Latin-3
filename = t/esperanto.t ; this file is Esperanto
match = ^t/urkish/ ; these are all Turkish
see how she eats? one encoding to rule them all, one exact filename for the Esperanto file, and one match regex catching every Turkish file under ^t/urkish/. slay.
π PERL VERSION π
real talk: this module should work on any version of perl still receiving updates from the Perl 5 Porters. that means any perl released in the last two to three years. fr fr. so like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.
okay and now the mild jump scare π β although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. so don't come at her with a downgrade PR, bestie, she already told you.
π ATTRIBUTES π
π encoding
this is the encoding to set on the selected files. and there's a special little secret value: "bytes" β use that one to indicate raw files that should not be encoded. it's giving "don't touch me I'm raw." π
πΈ filenames
this is an arrayref of filenames to have their encoding set. you name 'em, she encodes 'em.
π¦ matches
this is an arrayref of regular expressions. any file whose name matches one of these regexes will have its encoding set. regex girlies rise. β¨
π ignore
this is an arrayref of regular expressions too β but this one's the exclusion list. any file whose name matches one of these regexes will not have its encoding set. super useful when you need to ignore a few files that would otherwise get swept up by matches. it's the "not you, babe" list. π
π AUTHOR π
Ricardo SIGNES π <cpan@semiotic.systems>
not the π in the author line, I can't, that's so unserious and I love it for him.
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2026 by Ricardo SIGNES.
it's free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt.
and that's the whole page, bestie π«Ά go forth and encode responsibly.
π cute little sign-off: this wasperl v5.42.3, dated2026-10-19, straight fromDist::Z...Encoding(3). bye babe, hydrate, run your tests ππ
π¦ where this page comes from
- fedora 44: perl-Dist-Zilla 6.040-1.fc44 Β· 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