CPAN::Testers::Schema::Result::PerlVersion - Metadata about Perl versions
version 0.025
my $perl = $schema->resultset( 'PerlVersion' )->find( '5.26.0' ); say "Stable" unless $perl->devel; $schema->resultset( 'PerlVersion' )->find_or_create({ version => '5.30.0', # Version reported by Perl perl => '5.30.0', # Parsed Perl version string patch => 0, # Has patches applied devel => 0, # Is development version (odd minor version) }); # Fill in metadata automatically $schema->resultset( 'PerlVersion' )->find_or_create({ version => '5.31.0 patch 1231', # devel will be set to 1 # patch will be set to 1 # perl will be set to 5.31.0 });
This table holds metadata about known Perl versions. Through this table we can quickly list which Perl versions are stable/development.
The Perl version reported by the tester. This is the primary key.
The parsed version of Perl in REVISION.VERSION.SUBVERSION format.
REVISION.VERSION.SUBVERSION
If not specified when creating a new row, the Perl version will be parsed and this field updated accordingly.
If true (1), this Perl has patches applied. Defaults to false (0).
1
0
If true (1), this Perl is a development Perl version. Development Perl versions have an odd VERSION field (the second number) like 5.27.0, 5.29.0, 5.31.0, etc... Release candidates (like 5.28.0 RC0) are also considered development versions.
VERSION
5.27.0
5.29.0
5.31.0
5.28.0 RC0
The constructor will automatically fill in any missing information based on the supplied version field.
version
DBIx::Class::Row, CPAN::Testers::Schema
Oriol Soriano <oriolsoriano@gmail.com>
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2018 by Oriol Soriano, Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPAN::Testers::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Testers::Schema
CPAN shell
perl -MCPAN -e shell install CPAN::Testers::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.