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 05:52
Subject:
Re: [PATCH 2 of 3] $] is deprecated - EXTERMINATE, EXTERMINATE, EXTERMINATE
Message ID:
20010824125153.900.5@bactrian.ni-s.u-net.com
Ronald J Kimball <rjk@linguist.Thayer.dartmouth.edu> writes:
>On Thu, Aug 23, 2001 at 09:09:37AM -0400, John Peacock wrote:
>> Philip Newton wrote:
>> > 
>> > On Mon, 20 Aug 2001 21:45:49 -0400, jpeacock@rowman.com (John Peacock) wrote:
>> > 
>> > > -# $], $^O, $^T
>> > > -ok 26, $] >= 5.00319, $];
>> > > +# $^V, $^O, $^T
>> > > +ok 26, $^V gt 5.3.19, $];
>> > 
>> > That should be 5.3.190, since 5.003_19 == 5.003_190.
>> 
>> Yes, you're right.  It also doesn't make much sense to report $] on 
>> failure if we are actually testing $^V.  It should also be ge not gt.
>
>
>> +ok 26, $^V ge 5.3.190, $^V;
>
>Keep in mind that $^V is not directly printable.  This should probably be
>something like
>
>ok 26, $^V ge 5.3.190, join('.', unpack 'C*', $^V)

ok 26, $^V ge 5.3.190, sprintf("%vd",$^V)

Does work with chars > 255.

>
>except, of course, that this won't do the right thing for subversions
>greater than 255.  (Have I mentioned lately how much I dislike version
>strings?)
>
>Ronald
-- 
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