Test2::Require::Perl - Skip the test unless the necessary version of perl is installed.
Sometimes you have tests that are nice to run, but depend on tools that may not be available. Instead of adding the tool as a dep, or making the test always skip, it is common to make the test run conditionally. This package helps make that possible.
# Skip the test unless perl 5.10 or greater is installed. use Test2::Require::Perl 'v5.10'; # Enable 5.10 features. use v5.10;
The source code repository for Test2-Suite can be found at http://github.com/Test-More/Test2-Suite/.
Copyright 2016 Chad Granum <firstname.lastname@example.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.