Test::...Version(3pm)
π Test::...Version(3pm) π
okay bestie, gather round, because we're looking at Test::Valgrind::Version β the User Contributed Perl Documentation edition, no less. it's the object class that handles valgrind versions, and honestly? it's giving tiny-but-mighty. π
β¨ NAME β¨
Test::Valgrind::Version β the object class for valgrind versions, periodt.
πΈ VERSION πΈ
Version 1.19. that's the one, that's the number, don't come for me. π
π¦ DESCRIPTION π¦
so like, this class exists to parse, store and compare valgrind versions. that's it. that's the whole job. it does it and it does it well. β¨
π METHODS π
π new
my $vg_version = Test::Valgrind::Version->new(
command_output => qx{valgrind --version},
);
my $vg_version = Test::Valgrind::Version->new(
string => '1.2.3',
);
this makes you a brand-new Test::Valgrind::Version object representing a valgrind version, and you can feed it from one of these two sources:
- if the
command_outputoption is passed in, thennewwill try to parse it as if it were the output ofvalgrind --version. like, literally that exact output. π«Ά - otherwise, you must pass the
stringoption, and its value gets parsed as a 'dotted-integer' version number. cute, classic, iconic.
heads up bestie: an exception is raised if the version number can't be figured out from whatever data you handed over. so don't be vague with it. π
π₯ OVERLOADING π₯
this class overloads the numeric comparison operators β <=>, <, <=, ==, => and > β plus stringification. so you can compare versions like they're numbers, and stringify them like they're strings, and it just works. main character energy fr fr. π
π SEE ALSO π
Test::Valgrind. that's the one. go look. π
π AUTHOR π
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
you can contact him by mail, or on irc.perl.org (where he goes by vincent). say hi, he's lovely. π«Ά
π BUGS π
please report any bugs or feature requests to "bug-test-valgrind at rt.cpan.org", or through the web interface at:
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind
he'll get notified, and then you'll automatically get notified about progress on your bug as he makes changes. the circle of life, but for bug reports. π¦
π SUPPORT π
you can find documentation for this module with the perldoc command:
perldoc Test::Valgrind::Component
(yes, that's what the page says. write it down exactly like that. iykyk. π)
β COPYRIGHT & LICENSE β
Copyright 2015,2016 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source, we love to see it. π
and that's a wrap, bestie! this little page came to you courtesy of perl v5.40.1, dated 2025-04-13, as Test::...Version(3pm) π
β¨π
π¦ where this page comes from
- debian trixie: libtest-valgrind-perl 1.19-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-valgrind-perl 1.19-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-valgrind-perl 1.19-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms