Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can module building tools deal with .pl files in lib/ ( Module::Build add_build_element )

by Anonymous Monk
on Sep 16, 2020 at 03:10 UTC ( #11121825=note: print w/replies, xml ) Need Help??


in reply to Can module building tools deal with .pl files in lib/

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
  • Comment on Re: Can module building tools deal with .pl files in lib/ ( Module::Build add_build_element )
  • Download Code

Replies are listed 'Best First'.
Re^2: Can module building tools deal with .pl files in lib/ ( Module::Build add_build_element )
by Smonff (Beadle) on Sep 16, 2020 at 05:36 UTC

    This is magnificent.

    🌸

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11121825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2020-10-20 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?