On Tue, 24 May 2011 07:22:02 +1000, David E. Wheeler
<da...@kineticode.com> wrote:
On May 20, 2011, at 11:04 AM, Jeffrey Thalhammer wrote:
[1] I think a lot of this trouble would go away if the CPAN tool chain
simply permitted authors to express precisely which $VERSION of
something they require.
Hi David,
You can.
http://search.cpan.org/~dagolden/CPAN-Meta-2.110930/lib/CPAN/Meta/Spec.pm#Version_Ranges
Whaaat!? :-)
Let's see if I understand this correctly.
If, as an example, in this file,
http://cpansearch.perl.org/src/COSIMO/Net-Prober-0.03/META.json
I say:
"prereqs" : {
...
"runtime" : {
"requires" : {
"Net::Ping" : "<= 2.35"
}
},
...
},
Where current Net::Ping on CPAN is 2.36,
than this will install Net::Ping 2.35 as
prerequisite?
Or, if Net::Ping on the system is already 2.36
it will refuse to proceed?
I have tried fiddling with Makefile.PL/META.yml/META.json
without success.
--
Cosimo