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:
Ronald J Kimball
Date:
August 23, 2001 06:45
Subject:
Re: [PATCH 2 of 3] $] is deprecated - EXTERMINATE, EXTERMINATE, EXTERMINATE
Message ID:
20010823094500.A83358@linguist.thayer.dartmouth.edu
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)

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

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