On Feb 12, Adam Kennedy wrote:
> OK, this is a big ask.
>
> Having gotten my perl parser ( Parser Details at http://ali.as/PSP/ )
> capable of reading all the modules on my system, I'd like to get the
> module to the point where it can understand anything in CPAN.
>
> It makes a suitable development test, anything that is so rare and
> crufty it isn't in CPAN isn't worth bothering to account for, it's not
> like I'm executing perl code, just reading it.
If it has BEGIN blocks, and you're not executing it, then you may
not be able to parse it correctly. (Hint: subroutines with prototypes,
funk in eval($string)).
> So, what I'd like to be able to do is compile a combined source tree for
> ALL the perl code in CPAN. Now, I obviously can't just install it all,
> since things need to be compiled etc. I'd just like to extract all the
> modules out of all the packages at least on the module list, preferrably
> in every package.
>
> Can anyone offer any suggestions on an obvious way to do this, before I
> go nuts trying to write a tool for it...
Everything you need is in CPAN.pm. More than that, I cannot say.
- Kurt