A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label dzil. Show all posts
Showing posts with label dzil. Show all posts

How to build a CPAN module

Not really, this is just a few rough notes.

https://metacpan.org/pod/Dist::Zilla::Tutorial - shows the format of dist.ini

http://dzil.org/tutorial/start.html

Still use a cpanfile, and also Dist::Zilla::Plugin::Prereqs::FromCPANfile

With dzil you can choose whether you want to generate a Makefile.PL or Build.PL

Changes:

Thanks to Nelo & the team.

How to work with dist.ini as a user

You are a developer who needs to work with a Perl package. Instead of a cpanfile it has a dist.ini. Pop quiz, hot shot: What do you do?

Answer:

  • cpm install Dist::Zilla
  • dzil build
  • Follow instructions to install dependencies using cpanm
    • Or if you prefer cpm (and you should), then try this: dzil listdeps | xargs cpm install
  • Or: dzil authordeps --missing | xargs cpm install