OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

p5-Modern-Perl-1.20250607

enable all of the features of Modern Perl with one import

Back to search · Project homepage

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.

Package information

Ports path
devel/p5-Modern-Perl
Package architecture
*
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Installing and updating packages · Package details as JSON