Test2::...:String(3)

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

πŸ’… NAME πŸ’…

Test2::Compare::String β€” the glow-up where two values get compared as strings ✨ (and yeah, this page lives in the User Contributed Perl Documentation section, in case you were wondering 🫢)


🌸 DESCRIPTION 🌸

Okay so bestie, here's the tea: this lil guy is what you reach for when you want to compare two items after they get stringified β€” like, the string versions get matched up, no cap. πŸ’–

You can also use it to check that two strings are not equal, which is lowkey iconic for those "these should definitely differ" moments. πŸ¦‹

⚠️ Heads up though β€” this will fail if the received value is undefined. It must be defined. Not me letting an undef sneak in and ruining the whole vibe 😭 define your values, periodt.

πŸ”₯ SOURCE πŸ”₯

The source code repo for Test2-Suite is literally right here, go be nosy:

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

πŸ‘‘ MAINTAINERS πŸ‘‘

Chad Granum <exodist@cpan.org> β€” main character energy fr fr πŸ’œ


⭐ AUTHORS ⭐

Chad Granum <exodist@cpan.org> β€” yes bestie, same legend, he's carrying this whole thing πŸŽ€


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. Slay.

See http://dev.perl.org/licenses/ for the full legal lore iykyk.


✨ that's the whole page, you ate that ✨ β€” anyway, this masterpiece is from perl v5.42.0, dated 2025-07-28, and the page itself is Test2::...:String(3) (yes the header truncates it, no we don't know why, it's giving mysterious πŸ’€). mwah, go write some tests πŸ’…πŸŒΈ

πŸ“¦ where this page comes from