Test2::...e::Perl(3pm)

hey bestie, welcome to the Test2::...e::Perl(3pm) page from the Perl Programmers Reference Guide β€” the module doing the actual work here is Test2::Require::Perl, and she is literally here to save you from running tests on a Perl that is not the right version. πŸ’…

🌸 NAME 🌸

Test2::Require::Perl β€” skip the test unless the necessary version of Perl is installed. no cap, that is the whole name-and-purpose vibe. ✨

πŸ’– DESCRIPTION πŸ’–

okay so sometimes you have tests that are nice to run, but they depend on a certain version of Perl. This package lets you run the test conditionally, depending on if the correct version of Perl is available. That is it, that is the assignment. 🫢

✨ SYNOPSIS ✨

# Skip the test unless perl 5.10 or greater is installed.
use Test2::Require::Perl 'v5.10';

# Enable 5.10 features.
use v5.10;

🫢 SOURCE 🫢

The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. go off, repo. πŸ”₯

πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

πŸŽ€ AUTHORS πŸŽ€

  • Chad Granum <exodist@cpan.org>

Copyright Chad Granum <exodist@cpan.org>.

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/.


that is the whole page, bestie πŸ’… β€” perl v5.42.3, dated 2026-11-03, manual page Test2::...e::Perl(3pm). slay πŸ¦‹

πŸ“¦ where this page comes from