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>’,
);

# cpanfi…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Yuki Kimoto - SPVM - Perl Club

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';
};


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Yuki Kimoto - SPVM - Perl Club


Print Share Comment Cite Upload Translate Updates
APA

Yuki Kimoto - SPVM - Perl Club | Sciencx (2022-12-11T23:04:16+00:00) How to create cpanfile by “perl Makefile.PL”?. Retrieved from https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/

MLA
" » How to create cpanfile by “perl Makefile.PL”?." Yuki Kimoto - SPVM - Perl Club | Sciencx - Sunday December 11, 2022, https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/
HARVARD
Yuki Kimoto - SPVM - Perl Club | Sciencx Sunday December 11, 2022 » How to create cpanfile by “perl Makefile.PL”?., viewed ,<https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/>
VANCOUVER
Yuki Kimoto - SPVM - Perl Club | Sciencx - » How to create cpanfile by “perl Makefile.PL”?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/
CHICAGO
" » How to create cpanfile by “perl Makefile.PL”?." Yuki Kimoto - SPVM - Perl Club | Sciencx - Accessed . https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/
IEEE
" » How to create cpanfile by “perl Makefile.PL”?." Yuki Kimoto - SPVM - Perl Club | Sciencx [Online]. Available: https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/. [Accessed: ]
rf:citation
» How to create cpanfile by “perl Makefile.PL”? | Yuki Kimoto - SPVM - Perl Club | Sciencx | https://www.scien.cx/2022/12/11/how-to-create-cpanfile-by-perl-makefile-pl/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.