develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [PATCH 2 of 3] $] is deprecated - EXTERMINATE, EXTERMINATE, EXTERMINATE

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
August 24, 2001 06:08
Subject:
Re: [PATCH 2 of 3] $] is deprecated - EXTERMINATE, EXTERMINATE, EXTERMINATE
Message ID:
20010824130806.900.6@bactrian.ni-s.u-net.com
John Peacock <jpeacock@rowman.com> writes:
>
>	$VERSION = "5.6.1";  
>and	$VERSION = 5.6.1;
>
>would both be compared as "\5\6\1" automagically.

That bothers me a little - there are two strings there 

and "\5\6\1" ne "5.6.1" at the perl level.

>> 
>> 1. Is v1.300 equal to v1.196.172?  Yes.  I mean no.  I mean...  What was
>>    the question again?
>
>Can't help you there.  

There was a ruling on that and IIRC the are NOT equal - the SvUTF8 bit
is part of equal-ness - you can only be equal if representation is the 
same. and chr(1).chr(300) ne chr(1).chr(196).chr(192)

>Since both representations in Unicode are the
>same, the version strings will be equivalent.  This should be an 
>unlikely occurance for versions, unless someone is using CVS a little
>too religiously (I changed "d" to "D", I better commit ;~).  
>
>Oh, and speaking of CVS, if this all works, you will be able to use
>
>	$VERSION = qw$Revision: 1.51 $[1];
>
>and be sure that v10.10 > v10.9!

But 10.10 < 10.9  
There is only one '.' and no v


>
>Thanks for sharing!  :~)
>
>John
-- 
Nick Ing-Simmons
http://www.ni-s.u-net.com/


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