Test::S...::Scalar(3)
π Test::S...::Scalar(3) β the whole vibe
okay so bestie, welcome to Test::Stream::Compare::Scalar(3), aka the lil module that shows up in your deep comparisons when somebody's got a scalar reference and needs it, like, represented. she's short, she's deprecated, she's still iconic. let's get into it π«Ά
πΈ NAME πΈ
Test::Stream::Compare::Scalar β the representation of a Scalar Ref in deep comparisons. that's it, that's her whole job. π
π DEPRECATED π
not me having to tell you this⦠this distribution is deprecated, fr fr. it's been retired in favor ofTest2,Test2::Suite, andTest2::Workflow.
if you're tryna convert, there's a whole guide: see Test::Stream::Manual::ToTest2. it's giving "glow up instructions." β¨
π¦ DESCRIPTION π¦
so like, this thing gets used in deep comparisons to represent a scalar reference. lowkey that's the entire description. she's a niche queen and she knows it π
β¨ SYNOPSIS β¨
here's how you'd actually use her, no cap:
my $sr = Test::Stream::Compare::Scalar->new(item => 'foo');
is([\'foo'], $sr, "pass");
is([\'bar'], $sr, "fail, different value");
is(['foo'], $sr, "fail, not a ref");
see how it goes? first one slays, second one is a whole different value so it fails, and third one isn't even a ref so that's a fail too. vibe check: passed on one, failed on two. that's just how it is π
π SOURCE π
the source code repo for Test::Stream lives at:
http://github.com/Test-More/Test-Stream/
go look, it's cute, tell her I said hi π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
π COPYRIGHT π
Copyright 2015 Chad Granum <exodist7@gmail.com>.
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/ for the whole legal situation, bestie. π
β and that's the page! this was Test::S...::Scalar(3) from the User Contributed Perl Documentation, shipped with perl v5.42.0 and dated 2025-07-25. stay hydrated, keep your refs deep-comparable, and remember: deprecated doesn't mean forgotten. bye babes ππ
π¦
π¦ where this page comes from
- fedora 43: perl-Test-Stream 1.302027-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms