Test2::...:Scalar(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so bestie, this is the Test2::Compare::Scalar manpage from the User Contributed Perl Documentation β€” iykyk πŸ’…

  • Test2::Compare::Scalar β€” Representation of a Scalar Ref in deep comparisons ✨

🌸 DESCRIPTION 🌸

this one is lowkey used in deep comparisons to represent a scalar reference, periodt. it's giving exactly that, no cap. 🫢

✨ SYNOPSIS ✨

here's the code, bestie β€” keep it exactly like this:

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 that first one is literally the pass, the second is the fail because different value, and the third is the fail because not a ref... πŸ˜­πŸ’€

πŸ¦‹ SOURCE πŸ¦‹

the source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/ β€” obsessed πŸ”₯

πŸŽ€ 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/ πŸ¦‹


that's the whole page, bestie β€” iconic, no notes, fr fr. it's from perl v5.42.0 dated 2025-07-28, and the footer is repping Test2::...:Scalar(3). πŸ’–

πŸ“¦ where this page comes from