Test2::...ncoding(3pm)
π NAME π
okay so bestie, gather round β this is Test2::Tools::Encoding, a page straight out of the Perl Programmers Reference Guide (section 3pm, for the record). And what is it? It's the toolkit for managing the encoding of Test2-based tests. That's the whole vibe. β¨
π¦ DESCRIPTION π¦
So this module exports a function (yes, just the one) that lets you dynamically change the output encoding whenever you want. At will. On the fly. No cap. π
π SYNOPSIS π
use Test2::Tools::Encoding;
set_encoding('utf8');
that's literally it, icon behavior πΈ
π EXPORTS π
All subs are exported by default β no asking, they just show up. π«Ά
set_encoding($encoding)β this sets the encoding to whatever you specify. But bestie, listen: it only affects the output of the current formatter, which is usually your TAP output formatter. So don't go thinking it's changing everything everywhere, because it's not β it's giving "this formatter only" energy. π
π₯ SOURCE π₯
The source code repository for Test2-Suite lives right here, no gatekeeping:
https://github.com/Test-More/test-more/
π MAINTAINERS π
Chad Granum <exodist@cpan.org> β main character energy fr fr π
β AUTHORS β
Chad Granum <exodist@cpan.org> β same icon, still iconic β¨
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. (slay, free software π)
See http://dev.perl.org/licenses/
ngl this is the whole page, and yes it's short β but every single detail is here, so vibe check passed π―
and that's a wrap, bestie π§ β this masterpiece of a manual page is from perl v5.42.3, dated 2026-11-03, and the page is Test2::Tools::Encoding(3pm) (the header got a little truncated in the wild, but you know her). periodt π π
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms