develooper Front page | perl.perl5.porters | Postings from February 2007

Re: $Win32::VERSION problem

Thread Previous | Thread Next
From:
John Peacock
Date:
February 26, 2007 10:23
Subject:
Re: $Win32::VERSION problem
Message ID:
45E32587.4020008@rowman.com
Jan Dubois wrote:
> This is a reason why I don't want to 'use version'. I'm using plain
> numbers as the version, and therefore shouldn't have to worry about all
> this other stuff.  I hope you at least realize that the new error message
> is much more confusing for the novice user who couldn't care less
> about version objects.

As long as you use exclusively numeric versions, you shouldn't notice 
any difference with 'use version' at all (apart from the [improved] 
error message).  Personally, I don't think that the error message is all 
that confusing, but if that is the feeling of the group, I could make 
the output dependent on whether the module $VERSION was numeric or 
extended.

In other words, the error message that Steve (Hay) would have seen would 
have been this instead:

	Win32 version 0.270 required--this is only version 0.260

(the trailing zero is due to the version being normalized on three 
decimal multiples).  Iff the module $VERSION was using an extended 
version, the error would be:

	XXX version v0.270.0 required--this is only version v0.260.0

The only tricky part is that there is an equality relationship between 
extended and floating point versions, so someone /could/ mix them in a 
'use' line successfully (though I could forbid mixing that usage if we 
wanted to).

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About