Test2::...e::Perl(3)
π NAME π
Okay so bestie, this is Test2::Require::Perl β the manual page for it lives under Test2::...e::Perl(3) (the terminal truncates it, iykyk). What does it do? It skips the test unless the necessary version of Perl is installed. That's it, that's the whole vibe. β¨
π¦ DESCRIPTION π¦
So sometimes you've got these tests that are genuinely nice to run, but they depend on a certain version of Perl being there. This package is the main character that lets you run the test conditionally β depending on whether the correct version of Perl is actually available. No cap, it's that simple. π
π SYNOPSIS π
Like, here's how you'd use it:
# Skip the test unless perl 5.10 or greater is installed.
use Test2::Require::Perl 'v5.10';
# Enable 5.10 features.
use v5.10;
First line? Skip the test unless perl 5.10 or greater is installed. Second line? Now you can actually enable those 5.10 features. Slay. π₯
π SOURCE π
The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. Go look, it's giving open source excellence. π«Ά
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
β AUTHORS β
- Chad Granum
<exodist@cpan.org>
π COPYRIGHT π
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/
And that's the whole page, bestie β no notes, no extra lore, just the facts in full glam. π§ This little beauty is from perl v5.42.0, dated 2025-07-28, filed under Test2::...e::Perl(3). Mwah. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms