Maybe it only copies files with a .pm extension? Your example added another module to the tree, not an internal file that would be "required".

Yes it does, and that is a good thing. Why? Because copying .pl files by default is an often overlooked and most surprising feature of ExtUtils::MakeMaker , new authors just don't expect it, and they forget to check blib

$ md tmp7 $ module-starter --eumm --module=Straypl --author=name --email=e +mail Added to MANIFEST: Changes Added to MANIFEST: ignore.txt Added to MANIFEST: lib/Straypl.pm Added to MANIFEST: Makefile.PL Added to MANIFEST: MANIFEST Added to MANIFEST: README Added to MANIFEST: t/00-load.t Added to MANIFEST: t/boilerplate.t Added to MANIFEST: t/manifest.t Added to MANIFEST: t/pod-coverage.t Added to MANIFEST: t/pod.t Created starter directories and files $ cd Straypl $ echo print "i'm a stray\n"; 1; > imastray.pl $ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Straypl $ dmake cp lib/Straypl.pm blib\lib\Straypl.pm cp imastray.pl blib\lib\imastray.pl $ echo print "i'm a stray\n"; 2; > lib\Straypl.pl.pl.pl $ dmake $ perl Makefile.PL Writing Makefile for Straypl $ dmake cp lib/Straypl.pl.pl.pl blib\lib\Straypl.pl.pl.pl Skip blib\lib\Straypl.pm (unchanged) Skip blib\lib\imastray.pl (unchanged)

If you want Module::Build to do the same, you'll have to be proactive, one way is Module::Build::Cookbook#Adding new file types to the build process.

Also, consider Module::Build::API#share_dir or AutoSplit

Oh, and now is a good time to review How do I post a question effectively? :)


In reply to Re^3: Build.PL usage during module authoring by Anonymous Monk
in thread Build.PL usage during module authoring by John M. Dlugosz

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.