Test::Valgrind::Version3pm
Object class for valgrind versions.
Version
Version 1.19
Overview
This class is used to parse, store and compare "valgrind" versions.
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',);
Creates a new Test::Valgrind::Version object representing a "valgrind" version from one of these two sources :
- •
-
if the
"command_output"option is specified, then"new"will try to parse it as the output of"valgrind --version".
- •
-
otherwise the
"string"option must be passed, and its value will be parsed as a 'dotted-integer' version number.
An exception is raised if the version number cannot be inferred from the supplied data.
Overloading
This class overloads numeric comparison operators ("<=>", "<", "<=", " == ", "=>" and ">"), as well as stringification.
Support
You can find documentation for this module with the perldoc command.
perldoc Test::Valgrind::Component
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.
Releases
5 releases since Debian 9 (Stretch); the text changed 2 times.