On Mon, Jan 28, 2002 at 02:24:17PM -0000, Matt Sergeant wrote:
| > | > Gosh, 2.2 _is_ significantly older than 2.14.  Who would have guessed?
| > |
| > | Fine, until you throw that at CPAN.pm, which checks $SomeModule::VERSION
| <
| > | $RemoteCPANSomeModule::VERSION before trying to install something.
| > |
| > | Think very carefully about breaking CPAN installation before going off
| on a
| > | rant about this.
| >
| > If it does the equivalent of strcmp(), then CPAN itself is really
| > broken as it stands.
| >
| > (Is '<' the string or numeric comparison and is the VERISON variable a
| > "scalar" or an object that redefines '<' to be meaningful?)
| 
| Why would it do a strcmp?

String comparison doesn't work on version numbers.

| I've been saying all along - in perl $VERSION is a
| number. So it does numeric comparison, just like I described.

Sorry, I have trouble remembering which operator in perl is numeric
and which is string based.

Given this clarification, I assert that CPAN is really broken because
version numbers aren't floating point numbers.  Indeed, how would
"2.2.1" compare with "2.2.2"?  It is illogical to have multiple
decimal points in a float literal, though perl silently ignores that.
In fact, trying it out for myself, neither is less than the other!

-D

-- 

Thy Word is a lamp unto my feet
and a light unto my path.
        Psalms 119:105


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to