--- Simple.pm.dist Mon Oct 22 02:11:50 2007
+++ Simple.pm Mon Oct 22 11:50:41 2007
@@ -1,6 +1,7 @@
package Module::Starter::Simple;
# vi:et:sw=4 ts=4
+use 5.006;
use strict;
use warnings;
@@ -243,7 +244,7 @@
sub _reference_links {
return
( { nickname => 'RT',
- title => 'CPAN\'s request tracker',
+ title => 'CPAN\'s request tracker (report bugs here)',
link => '
http://rt.cpan.org/NoAuth/Bugs.html?Dist=%s',
},
{ nickname => 'AnnoCPAN',
@@ -318,6 +319,7 @@
(my $author = "$self->{author} <$self->{email}>") =~ s/'/\'/g;
return <<"HERE";
+use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
@@ -328,6 +330,8 @@
VERSION_FROM => '$main_pm_file',
ABSTRACT_FROM => '$main_pm_file',
PL_FILES => {},
+ (\$ExtUtils::MakeMaker::VERSION gt '6.30'?
+ ('LICENSE' => '$self->{license}', ) : ()),
PREREQ_PM => {
'Test::More' => 0,
},
@@ -369,7 +373,7 @@
WriteAll;
HERE
-
+#required perl version will be picked by all_from
}
=head2 create_Build_PL( $main_module )
@@ -410,6 +414,7 @@
(my $author = "$self->{author} <$self->{email}>") =~ s/'/\'/g;
return <<"HERE";
+use 5.006;
use strict;
use warnings;
use Module::Build;
@@ -419,6 +424,9 @@
license => '$self->{license}',
dist_author => '$author',
dist_version_from => '$main_pm_file',
+ requires => {
+ 'perl' => 5.006,
+ },
build_requires => {
'Test::More' => 0,
},
@@ -666,6 +674,7 @@
$t_files{'boilerplate.t'} = <<"HERE";
#!perl -T
+use 5.006;
use strict;
use warnings;
use Test::More tests => $boilerplate_tests;
@@ -951,8 +960,9 @@
my $content = <<"HERE";
package $module;
-use warnings;
+use 5.006;
use strict;
+use warnings;
\=head1 NAME