|
NAMEParse::PMFile - parses .pm file as PAUSE doesSYNOPSISuse Parse::PMFile; my $parser = Parse::PMFile->new($metadata, {VERBOSE => 1}); my $packages_info = $parser->parse($pmfile); # if you need info about invalid versions my ($packages_info, $errors) = $parser->parse($pmfile); # to check permissions my $parser = Parse::PMFile->new($metadata, { USERID => 'ISHIGAKI', PERMISSIONS => PAUSE::Permissions->new, }); DESCRIPTIONThe most of the code of this module is taken from the PAUSE code as of April 2013 almost verbatim. Thus, the heart of this module should be quite stable. However, I made it not to use pipe ("-|") as well as I stripped database-related code. If you encounter any issue, that's most probably because of my modification.This module doesn't provide features to extract a distribution or parse meta files intentionally. METHODSnewcreates an object. You can also pass a hashref taken from META.yml etc, and an optional hashref. Options are:
parsetakes a path to a .pm file, and returns a hash reference that holds information for package(s) found in the file.SEE ALSOParse::LocalDistribution, PAUSE::PermissionsMost part of this module is derived from PAUSE and CPAN::Version. <https://github.com/andk/pause> <https://github.com/andk/cpanpm> AUTHORAndreas Koenig <andreas.koenig@anima.de>Kenichi Ishigaki, <ishigaki@cpan.org> COPYRIGHT AND LICENSECopyright 1995 - 2013 by Andreas Koenig <andk@cpan.org> for most of the code.Copyright 2013 by Kenichi Ishigaki for some. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |