Module::MakefilePL::Parse

Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL.
Download

Module::MakefilePL::Parse Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Robert Rothenberg
  • Publisher web site:
  • http://search.cpan.org/~rrwo/

Module::MakefilePL::Parse Tags


Module::MakefilePL::Parse Description

Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL.SYNOPSIS use Module::MakefilePL::Parse; open $fh, 'Makefile.PL'; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;The purpose of this module is to determine the required modules for older CPAN distributions which do not have META.yml files but use Makefile.PL and ExtUtils::MakeMaker or Module::Install.Presumably newer style Makefile.PL files which use Module::Install or Module::Build already have META.yml files in their distributions.Methodsnew $parser = new Modile::MakefilePL::Parse( $script );Parses a Makefile.PL script and returns an object. Returns undef if there is a problem.required $info = $parser->required;Returns a hash reference containing the prerequisite modules. This is either the the PREREQ_PM key, or a combination of prerequisites specified in requires and build_requires calls in the Makefile.PL script (depending on the "install_type").install_type $module = $parser->install_type;Returns the module used for installation.CAVEATSThis module does evaluate a portion of the code, so there is a security issue. However, it only evaluates the definition of the PREREQ_PM key in calls to WriteMakefile, which should be more difficult to embed malware in.Do not run this module on untrusted scripts. Requirements: · Perl


Module::MakefilePL::Parse Related Software