Acme-CPANModules-ModernPreambles
view release on metacpan or search on metacpan
"requires" : {
"File::Spec" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
"Test::More" : "0"
}
},
"x_lists" : {
"x_lists" : {
"Alt::common::sense::TOBYINK" : "0",
"Modern::Perl" : "0",
"common::sense" : "0",
"latest" : "0",
"nonsense" : "0",
"perl5" : "0",
"perl5i" : "0"
}
},
"x_mentions" : {
"x_mentions" : {
"Alt::common::sense::TOBYINK" : "0",
"Modern::Perl" : "0",
"common::sense" : "0",
"latest" : "0",
"nonsense" : "0",
"perl5" : "0",
"perl5i" : "0"
}
}
},
"provides" : {
"Acme::CPANModules::ModernPreambles" : {
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.
ACME::CPANMODULES ENTRIES
Alt::common::sense::TOBYINK
Author: TOBYINK <https://metacpan.org/author/TOBYINK>
common::sense
Author: MLEHMANN <https://metacpan.org/author/MLEHMANN>
latest
Author: ANDYA <https://metacpan.org/author/ANDYA>
Modern::Perl
Author: CHROMATIC <https://metacpan.org/author/CHROMATIC>
nonsense
Author: JROCKWAY <https://metacpan.org/author/JROCKWAY>
perl5
Author: INGY <https://metacpan.org/author/INGY>
perl5i
Author: MSCHWERN <https://metacpan.org/author/MSCHWERN>
lib/Acme/CPANModules/ModernPreambles.pm view on Meta::CPAN
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 <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'},
{module=>'perl5'},
{module=>'perl5i'},
],
};
1;
# ABSTRACT: List of modules that offer modern preambles
__END__
lib/Acme/CPANModules/ModernPreambles.pm view on Meta::CPAN
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 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
lib/Acme/CPANModules/ModernPreambles.pm view on Meta::CPAN
Author: L<TOBYINK|https://metacpan.org/author/TOBYINK>
=item L<common::sense>
Author: L<MLEHMANN|https://metacpan.org/author/MLEHMANN>
=item L<latest>
Author: L<ANDYA|https://metacpan.org/author/ANDYA>
=item L<Modern::Perl>
Author: L<CHROMATIC|https://metacpan.org/author/CHROMATIC>
=item L<nonsense>
Author: L<JROCKWAY|https://metacpan.org/author/JROCKWAY>
=item L<perl5>
Author: L<INGY|https://metacpan.org/author/INGY>
( run in 0.245 second using v1.01-cache-2.11-cpan-4d50c553e7e )