Test2:...::Type(3pm)
π Test2::Compare::Type π
okay bestie, quick lil intro: this page is Test2:...::Type(3pm) from the User Contributed Perl Documentation, and it's about letting you check a value's type mid-deep-comparison. periodt. π
β¨ NAME β¨
Test2::Compare::Type β use a type to validate values in a deep comparison. π¦
πΈ DESCRIPTION πΈ
So the whole vibe here is: this lets you validate a value's type inside a deep comparison. Sometimes a value just needs to look right, yk? It doesn't have to be the exact thing. π
Think about it like this β say you're obsessed with the fact that your code always returns an integer. You do not care whether it's 192 or 3. Both slay. Both are integers. That's the energy. π₯
π CAVEATS π
ngl, this part matters. The definitions of Boolean, integer and number are exactly the same as those in Scalar::Type, because Scalar::Type is what this module is a thin wrapper around. No cap, no extra opinions, same definitions. π«Ά
π SEE ALSO π
Go read these icons too:
Scalar::TypeTest2::Tools::TypeTest2
π BUGS π
If you find any bugs, please report them on Github β and preferably bring a test case with you. Giving us the receipts is the whole assignment. π
π FEEDBACK π
I welcome feedback about my code, especially constructive criticism. Tell me what's not working bestie, I want to grow. π±
π AUTHOR, COPYRIGHT and LICENCE π
Mostly cargo-culted from Test2::Compare::Pattern. Differences from that are Copyright 2024 David Cantrell <david@cantrell.org.uk>. π
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use, fr fr β your call, your era. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. π
π§ CONSPIRACY π§
This module is also free-as-in-mason software. Yes really. That's the whole section. Iconic. π§±β¨
okay bye bestie, that's the whole page β this was perl v5.42.3, dated 2026-08-20, and the manual you just read is Test2:...::Type(3pm). mwah ππ
π¦ where this page comes from
- ubuntu stonking: libscalar-type-perl 1.0.1-1build2 Β· Artistic-1.0-Perl OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms