How to pass the arguments of Makefile.PL using cpanm

Yuki Kimoto - SPVM Author - Dec 23 '22 - - Dev Community

The command cpanm --installdeps . to install dependent modules executes perl Makefile.PL.

How to pass the arguments of perl Makefile.PL executed by cpanm.

The answer is using the --configure-args option.

cpanm --installdeps . --configure-args="--meta"
Enter fullscreen mode Exit fullscreen mode

For Programming Beginners

cpanm is a command tool to install Perl modules from CPAN.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .