On Tuesday, March 5, 2002, at 08:58 AM, Richard Clamp wrote:
> Say if I were to figure out what versions modules were shipped with
> each release of perl were[0], so that I could write some code to
> figure out what were CPAN dependencies for a given module, where would
> I put it?
Somewhere very public! I don't know of any place where one can find
this information easily right now, much less a programmatic interface to
it. It would be most welcome if you were to do this.
> I'm currently looking at $Module::Core::List{'5.6.1'}; but it doesn't
> seem quite right.
Yeah, that doesn't seem like a good interface. I'd want some methods
like this, or similar:
my $perl5_6 = Module::CoreVersion->release('5.6');
do ... if $perl5_6->has('File::Spec');
do ... if $perl5_6->has(File::Spec => 2.1); # at least version 2.1
do ... if $perl5_6->version('File::Spec') eq '2.1';
print $perl5_6->as_string; # For easy visual reference
my $perl_version = Module::CoreVersion->earliest('File::Spec');
my $perl_version = Module::CoreVersion->earliest(File::Spec => 2.1);
That's a start, anyway. What do you think of 'Module::CoreVersion'?
Maybe it should be plural?
-Ken