DEV Community

Yuki Kimoto
Yuki Kimoto

Posted on

4 1

How to create cpanfile by "perl Makefile.PL"?

How to create cpanfile by "perl Makefile.PL"?

ExtUtils::MakeMaker::CPANfile makes it possible.

# Makefile.PL
use ExtUtils::MakeMaker::CPANfile;

WriteMakefile(
  NAME => 'Foo::Bar',
  AUTHOR => 'A.U.Thor <author@cpan.org>',
);

# cpanfile
requires 'ExtUtils::MakeMaker' => '6.17';
on test => sub {
  requires 'Test::More' => '0.88';
};
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay