TEST2::COMPARE::PATTERN(3perl)
π NAME π
Test2::Compare::Pattern β bestie, this is the glow-up that lets you validate a value in a deep comparison using a pattern. Regex-coded queen energy. π
β¨ DESCRIPTION β¨
okay so picture this: you're doing a deep comparison, and one of the values is being β¨extraβ¨. This module lets you roll up with a regex and be like "girl, you just gotta look right, I don't need your whole life story."
Sometimes a value just needs to look right β it doesn't need to be exact, bestie. Fr fr.
The iconic example? A memory address π§ that might change from run to run. Like, she's a different girl every time you see her, but she still needs to be shaped like a memory address. And Test2::Compare::Pattern is the vibe check that makes sure of it. π
π SOURCE π
The source code repository for Test2-Suite can be found at:
https://github.com/Test-More/test-more/
go π look π at π it π β the source is right there, no gatekeeping here, iykyk π«Ά
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
(the main character of this whole operation, periodt π)
π¦ AUTHORS π¦
- Chad Granum
<exodist@cpan.org>
π 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.
See http://dev.perl.org/licenses/
ok that's the whole page bestie, no notes, she ate and left zero crumbs πβ¨
That's the teardown from the perl v5.44.0 release, dated 2026-10-17 β straight out of the Perl Programmers Reference Guide. mwah, go write some tests πΈπ
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms