Re: [Parseperl-discuss] PPI to get package/versions
Brought to you by:
adamkennedy
From: Elliot S. <pe...@ga...> - 2010-03-16 02:02:26
|
On 3/15/10 11:50 AM, Todd Rinaldo wrote: > I'm sure you've seen many of these corner cases. How did you deal with them? I haven't had to deal with $VERSION, so I haven't run into this. Everything I've written has been to process code that I can change, and not arbitrary stuff from the CPAN. > It seems to me META.yml is desperately in need of a 'provides' section > which could properly document the author's modules and versions as they > intended. Has anyone heard any discussion of this idea ever? There is one: e.g. http://cpansearch.perl.org/src/ELLIOTJS/PPIx-Utilities-1.000001/META.yml. Whether it is present or not depends upon what the author had installed at the time that the distribution tarball was created. If you use current Module::Build/ExtUtils::MakeMaker, you'll get a MYMETA.yml after running Build.PL/Makefile.PL which will reflect the actual things that will/would be installed. If you can't tell from the above URL, I've released the code that I discussed earlier: http://search.cpan.org/dist/PPIx-Utilities/. |