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

Re: [PATCH 1 of 3] $] is deprecated - eliminate from core tests

Thread Previous | Thread Next
From:
Philip Newton
Date:
August 22, 2001 19:41
Subject:
Re: [PATCH 1 of 3] $] is deprecated - eliminate from core tests
Message ID:
re55ot8ta549c4f5dpdeifqc9mfp6q3vic@4ax.com
On Mon, 20 Aug 2001 21:57:45 -0400, jpeacock@rowman.com (John Peacock) wrote:

> Yes, but the test doesn't even do what it purports to do.  Look at 
> the patch:
> 
> -eval sprintf "use %.5f;", $] - 0.000001;
> 
> This would seem to be trying to get a version just slightly older
> than the current one.  Problem is that $] == 5.007002 (in numeric
> context), which is 6 decimal places not 5.

The tests were probably written at a time when a typical version number looked
like 5.005_03 and had five decimal places.

Cheers,
Philip

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