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

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’… 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 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