Acme-CPANModules-ModernPreambles

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.

lib/Acme/CPANModules/ModernPreambles.pm  view on Meta::CPAN

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 <pm: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 <pm:feature> for more details on new features of each perl release)
 
and so on, but this also means you set a minimum Perl version.

lib/Acme/CPANModules/ModernPreambles.pm  view on Meta::CPAN

80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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 L<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.



( run in 0.241 second using v1.01-cache-2.11-cpan-94b05bcf43c )