1arryb has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I build an index from a CPAN mirror (downloaded from rsync.nic.funet.fi::CPAN). The .../AUTHORS/ID/ area of the mirror contains the actual module .tar.gz archives. Next to most of these files is a .meta file with the same name. I've included a typical one at the end of my post. My question is, what module should I use to parse this file? I cannot find any references to .meta files on CPAN. .yml, yes. .json, also. But no .meta. I tried to parse the files anyway with Parse::CPAN::Meta, but without luck. I'd like to avoid re-inventing this wheel if I can. Thanks!
$ cat AUTHORS/ID/C/CH/CHENRYN/Message-Passing-Filter-Regexp-0.02.meta { "abstract" : "Regexp Capture Filter For Message::Passing", "author" : [ "chenryn <rao.chenlin@gmail.com>" ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Con +verter version 2.112150", "license" : [ "unknown" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Message-Passing-Filter-Regexp", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : 0 } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : 0 } }, "runtime" : { "requires" : { "Config::Tiny" : 0, "JSON::Types" : 0, "Message::Passing" : "0.11", "Regexp::Log" : 0 } } }, "release_status" : "stable", "version" : "0.02" }
Back to
Seekers of Perl Wisdom