Acme-CPANModules-ModernPreambles

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    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.

ACME::CPANMODULES ENTRIES
    Alt::common::sense::TOBYINK
        Author: TOBYINK <https://metacpan.org/author/TOBYINK>

    common::sense
        Author: MLEHMANN <https://metacpan.org/author/MLEHMANN>

README  view on Meta::CPAN

    required beyond that are considered a bug and can be reported to me.

COPYRIGHT AND LICENSE
    This software is copyright (c) 2023, 2019 by perlancar
    <perlancar@cpan.org>.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

BUGS
    Please report any bugs or feature requests on the bugtracker website
    <https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-Mode
    rnPreambles>

    When submitting a bug or request, please include a test-file or a patch
    to an existing test-file that illustrates the bug or desired feature.

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

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 <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.

_
    entries => [
        {module=>'Alt::common::sense::TOBYINK'},
        {module=>'common::sense'},
        {module=>'latest'},
        {module=>'Modern::Perl'},
        {module=>'nonsense'},

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

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 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.

=head1 ACME::CPANMODULES ENTRIES

=over

=item L<Alt::common::sense::TOBYINK>

Author: L<TOBYINK|https://metacpan.org/author/TOBYINK>

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


=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2023, 2019 by perlancar <perlancar@cpan.org>.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-ModernPreambles>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=cut



( run in 0.398 second using v1.01-cache-2.11-cpan-a5abf4f5562 )