Re: Version comparisons
[email protected] ("Jos I. Boumans") Wed, 29 Oct 2003 13:44:19 +0100
| Newsgroups | perl.cpan.metadata |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, October 29, 2003, at 01:26 PM, Leon Brocard wrote:
>> 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.
that is one of the things you can do with versions -- figure out which
one is larger than the other.
> Do you mean matching multiple anded statements?
i mean that also, since that is The Next Step that module::build
introduced.
> Can't you parse the string and break that into Perl code?
for certain values of 'you' (drmath), this has already been done.. so
yes, that's possible, but not the point here :)
> Are you trying to decide on a syntax for this?
standard and syntax, and a common place to put this...
if we can make it into a standard, copy/pasting the code isn't so
bad... if we don't make it into a standard, well, we get what we have
right now :)
> What do other package managers do?
not relevant i think :) we have our own quirky version system, and we
have had 'only' for a little while now, which makes it possible to use
ranges of versions
(i forgot to mention 'only' earlier, shame on me).
--
Jos Boumans
"Cocaine is God's way of telling you you make too much money"
CPANPLUS http://cpanplus.sf.net