unless ($fromname) {
die "For $mname tried @locations in in $ext_dir but can't find source";
}
+ my $pod_name;
+ ($pod_name = $fromname) =~ s/\.pm\z/.pod/;
+ $pod_name = $fromname unless -e $pod_name;
open my $fh, '>', 'Makefile.PL'
or die "Can't open Makefile.PL for writing: $!";
print $fh <<"EOM";
WriteMakefile(
NAME => '$mname',
VERSION_FROM => '$fromname',
- ABSTRACT_FROM => '$fromname',
+ ABSTRACT_FROM => '$pod_name',
realclean => {FILES => 'Makefile.PL'},
);