Re: Version comparisons

[email protected] (Leon Brocard) Wed, 29 Oct 2003 12:26:34 +0000
Newsgroups perl.cpan.metadata
Message-ID <[email protected]>
Jos I. Boumans sent the following bits through the ether:

> Autrijus proposed a syntax like this:
> 	version->new('1.403')->satisfy('> 1.10 != 1.40');
> 		or
> 	version->new('1.403')->match('> 1.10 != 1.40');

When comparing versions, all I normally mean is seeing how versions
sort. Because versions of modules are weird (see perldoc version for
far more than you want to know about this), I use version.pm for
filling this need (and no, not Sort::Versions).

Do you mean matching multiple anded statements? Can't you parse the
string and break that into Perl code? Are you trying to decide on a
syntax for this? What do other package managers do? And why do I ask so
many questions?[1]

BTW, I agree that this should be in a common place, and I really
appreciate http://search.cpan.org/dist/CPAN-DistnameInfo/

Leon

[1] Probably as I am ill and can't think
-- 
Leon Brocard.............................http://www.astray.com/
scribot.................................http://www.scribot.com/

... Go Lemmings, go!!!