Name : perl-Acme-CPANModules-ModernPreambles
| |
Version : 0.002
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.3
| Date : 2024-08-05 17:42:30
|
Group : Unspecified
| Source RPM : perl-Acme-CPANModules-ModernPreambles-0.002-1.3.src.rpm
|
Size : 0.03 MB
| |
Packager : (none)
| |
Summary : List of modules that offer modern preambles
|
Description :
The overwhelming convention for coding Perl properly code is to at least add the following preamble:
use strict; use warnings;
to the beginning of your code. But some people say that\'s not enough, and they develop modules/pragmas that bundle the above incantation plus some additional stuffs. For example:
use Modern::Perl \'2018\';
is equivalent to:
use strict; use warnings; use feature \':5.26\'; mro::set_mro( scalar caller(), \'c3\' );
I think Modern::Perl is one of the first to popularize this modern preamble concept and a bunch of similar preambles emerged. This list catalogs them.
Meanwhile, you can also use:
use v5.12; # enables strict and warnings, as well as all 5.12 features (see L< feature> for more details on new features of each perl release)
and so on, but this also means you set a minimum Perl version.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch |