Test2::...are::Ref(3)
π NAME π
okay so this is Test2::...are::Ref(3) β that's the manual page name as it shows up (yes the middle got eaten by the terminal, it's really the Test2::Compare::Ref page from User Contributed Perl Documentation, and no, that's not a typo, that's just how it renders π). It's about ref comparison β like, comparing refs. Specifically refs. Not the stuff inside them. The ref itself. iykyk β¨
π¦ DESCRIPTION π¦
So bestie, here's the whole vibe: this thing is used to compare two refs in a deep comparison. That's it. That's the whole job. It's giving "I have one task and I slay it" π
πΈ SYNOPSIS πΈ
okay so here's the moment, the main character entrance, the code:
my $ref = {};
my $check = Test2::Compare::Ref->new(input => $ref);
# Passes
is( [$ref], [$check], "The array contains the exact ref we want" );
# Fails, they both may be empty hashes, but we are looking for a specific
# reference.
is( [{}], [$check], "This will fail");
so real talk π β the first check passes because the array literally contains the exact ref we want, the same one, no cap. The second one fails because even though {} and {} are both empty hashes and look identical from the outside, we are looking for a specific reference, and a fresh {} is not that reference. so it fails. as it should. periodt πβ¨
π SOURCE π
the source code repo for Test2-Suite lives right here, go be nosy, I support it π«Ά
https://github.com/Test-More/test-more/
β MAINTAINERS β
- Chad Granum
<exodist@cpan.org>
π 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/
and that's the whole page bestie, mwah π β this was perl v5.42.0, dated 2025-07-28, page Test2::...are::Ref(3), signing off before the terminal eats any more of the title ππ¦π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 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