You also have to ignore perl version stuff for anything that is core on whatever the current Perl is. The logic isn't too hard, and Module::CoreList is handy in this regard.
For starters, I'd just check what's on the current system. Most modules don't change their perl version deps very often.
Adam K
Rhesa wrote:
Adam Kennedy wrote:
> Hi folks
>
> I'm presuming all of you have had a chance to read Rob's perl.com article.
>
> http://www.perl.com/pub/a/2005/04/14/cpan_guidelines.html
>
> I for one noticed a few interesting/odd points. :)
[...]
> But what I most wanted to speak about was minimum Perl versions for > code, relating his Rob's "gotchas" stuff. > > It should be possible (and it's been in the mental roadmap for a long > time) to create with PPI a package that can tell you what the minimum > version of Perl is to run any chunk of Perl code.
That would be an excellent tool.
I just published my first module on CPAN, and this was my biggest issue. I _know_ it could be made to run on perl 5.004, with DBI 1.06, but I have no experience whatsoever with perls before 5.6.0. Knowing all the gotcha's would be great!
[snip]
> Of course, there's some WAY more efficient algorithms I can see for
> speeding up the searching, and you would also have to trace down into
> included modules, but the above would get you a "naive minimum version",
> which you would then compared against the same for all the needed modules.
Efficiency apart, how would you deal with finding the minimum required dependent modules?
Say my PREREQ asks for DBI => 1.06, but I have 1.42 installed. Would you go find DBI 1.06 and check that, or use the installed version?
I'm getting chills down my spine just contemplating that being done recursively.
> I keep meaning to get around to just implementing it, but I'm stretched > for time as it is...
I'd be happy to just see a list of compatibility notes. But some sort of parser would be extremely cool.
Rhesa
_______________________________________________ sw-design mailing list [email protected] http://metaperl.com/cgi-bin/mailman/listinfo/sw-design
_______________________________________________ sw-design mailing list [email protected] http://metaperl.com/cgi-bin/mailman/listinfo/sw-design
