Acme-CPANModules-ModernPreambles

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    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

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

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 1.153 second using v1.01-cache-2.11-cpan-94b05bcf43c )