Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-26 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found