> -----Original Message-----
> From: Greg Ward [mailto:[EMAIL PROTECTED]]
> 
> On 24 January 2002, Matt Sergeant said:
> > No, this is Perl. Version numbers are floating point 
> numbers. (yes I know
> > it's a crap situation, but that's just how it works).
> 
> I think that rule was broken when the next version after Perl 5.005
> became Perl 5.6.  Didn't they even introduce a new type especially for
> version numbers?

It's all very confusing. I recommend you don't go there ;-)

If you really want to know, under 5.6, you could specify v-strings, which
look like v1.3.5. Now those things actually translate internally to UTF-8
strings. This was basically a hack that allowed things like 10.2.100.160 to
work, and be both an IP address and the binary level IP address perfect for
low level sockets to work.

But in the 5.8 development cycle people have realised this is a horrible
thing to do, and is fundamentally broken regarding versioning modules - for
example what if you had "require v5.7.2;" in a perl script? Under 5.7.2 it
would work fine, but rather than telling you "This script requires version
5.7.2 of Perl" under 5.005, it would just croak with a syntax error. Bad,
very bad.

So v-strings are going, to be replaced perhaps with a v-string class in an
aim to support backwards compatibility.

Matt.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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

Reply via email to