note
Anonymous Monk
<p>[href://https://metacpan.org/pod/Module::Build::Cookbook#Adding-new-file-types-to-the-build-process]
<p><b> $builder->add_build_element(q/pl/); </b>
<c>$ module-starter --module DotPlInLib --email email --author author --verbose --mb
Created DotPlInLib
Created DotPlInLib\lib
Created DotPlInLib\lib\DotPlInLib.pm
Created DotPlInLib\t
Created DotPlInLib\t\pod-coverage.t
Created DotPlInLib\t\pod.t
Created DotPlInLib\t\manifest.t
Created DotPlInLib\t\00-load.t
Created DotPlInLib\xt
Created DotPlInLib\xt\boilerplate.t
Created DotPlInLib\ignore.txt
Created DotPlInLib\Build.PL
Created DotPlInLib\Changes
Created DotPlInLib\README
Added to MANIFEST: Build.PL
Added to MANIFEST: Changes
Added to MANIFEST: ignore.txt
Added to MANIFEST: lib/DotPlInLib.pm
Added to MANIFEST: MANIFEST
Added to MANIFEST: README
Added to MANIFEST: t/00-load.t
Added to MANIFEST: t/manifest.t
Added to MANIFEST: t/pod-coverage.t
Added to MANIFEST: t/pod.t
Added to MANIFEST: xt/boilerplate.t
Created DotPlInLib\MANIFEST
Created starter directories and files
$ cd DotPlInLib
$ md lib\DotPlInLib\
$ echo sub yo { 42 } > lib\yo.pl
$ echo sub yo { 42 } > lib\DotPlInLib\yo.pl
$ echo sub no { 42 } > no.pl
$ perl -pi.orig -e "s{^(\$builder->)}{${1}add_build_element(q/pl/);;$1} " Build.PL
$ perl Build.PL --install_base .deleteme/
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'DotPlInLib' version '0.01'
$ perl Build install
Building DotPlInLib
Installing .deleteme\lib\perl5\DotPlInLib.pm
Installing .deleteme\lib\perl5\yo.pl
Installing .deleteme\lib\perl5\DotPlInLib\yo.pl
</c>
11121632
11121632
10