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