Test2::...:Scalar(3pm)

πŸŽ€ NAME πŸŽ€

okay so this is the Test2::Compare::Scalar(3pm) page from the Perl Programmers Reference Guide β€” and yes, the header/footer labels it Test2::...:Scalar(3pm), iykyk πŸ’…

Test2::Compare::Scalar β€” literally the representation of a Scalar Ref in deep comparisons ✨


πŸ’– DESCRIPTION πŸ’–

bestie, this is used in deep comparisons to represent a scalar reference. that’s the whole vibe. no cap 🫢


🌸 SYNOPSIS 🌸

okay so here’s the group-chat demo, copied exactly because we do not play with code πŸ’…

my $sr = Test2::Compare::Scalar->new(item => 'foo');

is([\'foo'], $sr, "pass");
is([\'bar'], $sr, "fail, different value");
is(['foo'],  $sr, "fail, not a ref");

the way those is(...) calls spell out "pass", "fail, different value", and "fail, not a ref" is honestly iconic 😭πŸ”₯


πŸ¦‹ SOURCE πŸ¦‹

the source code repository for Test2-Suite can be found at:

https://github.com/Test-More/test-more/

go off, repo πŸ‘‘βœ¨


🌈 MAINTAINERS 🌈

  • Chad Granum <exodist@cpan.org> πŸ’œ

⭐ AUTHORS ⭐

  • Chad Granum <exodist@cpan.org> 🫢

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


okay that’s the whole page, bestie! 🫢 the footer on this one says perl v5.42.3, 2026-11-03, and Test2::...:Scalar(3pm) β€” periodt πŸ’–πŸŽ€

πŸ“¦ where this page comes from