BSD Ports

devel/p5-Modern-Perl 1.20250607 OpenBSD

enable all of the features of Modern Perl with one import

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

Description

Modern Perl programs use several modules to enable additional features of Perl and of the CPAN. Instead of copying and pasting all of these use lines, instead write only one:

use Modern::Perl;

This enables the strict and warnings pragmas, as well as all of the features available in Perl 5.10. It also enables C3 method resolution order as documented in perldoc mro and loads IO::File and IO::Handle so that you may call methods on filehandles. In the future, it may include additional core modules and pragmas.

Because so much of this module's behavior uses lexically scoped pragmas, you may disable these pragmas within an inner scope with:

no Modern::Perl;

See http://www.modernperlbooks.com/mt/2009/01/toward-a-modernperl.html for more information, http://www.modernperlbooks.com/ for further discussion of Modern Perl and its implications, and http://onyxneon.com/books/modern_perl/index.html for a freely-downloadable Modern Perl tutorial.

See https://metacpan.org/pod/distribution/Modern-Perl/lib/Modern/Perl.pm for more details.

In the other systems

The newest version among them is 1.20250607, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDdevel/p5-Modern-Perl1.20250607 newestno data-The OpenBSD ports mailing-list <[email protected]>-
FreeBSDlang/p5-Modern-Perl by name1.20250607 newestnone known-[email protected]-
NetBSDdevel/p5-Modern-Perl1.20250607nb1 newestnone known-[email protected]2026-07-16
DragonFlylang/p5-Modern-Perl by name1.20241001none known-[email protected]-
HardenedBSDlang/p5-Modern-Perl by name1.20250607 newestno data-[email protected]-
GhostBSDlang/p5-Modern-Perl by name1.20250607 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg_add p5-Modern-Perl

From the ports tree:

cd /usr/ports/devel/p5-Modern-Perl && make install

Dependencies

No port depends on this one.