mymeta-cpanfile - Dump cpanfile out of (MY)META files
perl Makefile.PL # or Build.PL mymeta-cpanfile # Skip configures phase and suggests type mymeta-cpanfile --no-configure --no-suggests # Include empty blcok for phases without prereqs mymeta-cpanfile --include-empty
This script reads prereqs metadata from MYMETA files in the current directory and prints cpanfile that represents the prereqs. Useful when you want to migrate to using cpanfile from existing Makefile.PL or Build.PL with dependency specification.
cpanfile
Makefile.PL
Build.PL
This script is distributed with Module::CPANfile since version 0.9021.
Specify the phase to include/exclude. Defaults to include all phases, but you can exclude some phases by specifying the options with --no- prefix, like --no-configure.
--no-
--no-configure
Specify the type to include/exclude. Defaults to include all types, but you can exclude some types by specifying the options with --no- prefix, like --no-conflicts.
--no-conflicts
By default, phases without any prereqs are not dumped, By giving this option, cpanfile will have an empty block such as:
on test => sub { };
Defaults to false.
Tatsuhiko Miyagawa
Module::CPANfile cpanfile App::mymeta_requires
To install Module::CPANfile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::CPANfile
CPAN shell
perl -MCPAN -e shell install Module::CPANfile
For more information on module installation, please visit the detailed CPAN module installation guide.