https://metacpan.org/pod/Module::Build::Cookbook#Adding-new-file-types-to-the-build-process

$builder->add_build_element(q/pl/);

$ module-starter --module DotPlInLib --email email --author author --v +erbose --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

In reply to Re: Can module building tools deal with .pl files in lib/ ( Module::Build add_build_element ) by Anonymous Monk
in thread Can module building tools deal with .pl files in lib/ by Smonff

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.