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:
John Peacock
Date:
August 24, 2001 13:33
Subject:
Re: [PATCH 2 of 3] $] is deprecated - EXTERMINATE, EXTERMINATE, EXTERMINATE
Message ID:
3B86BA01.B7745376@rowman.com
Nick Ing-Simmons wrote:
> 
> >       $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
> 

Sorry, I should have said "v10.10 gt v10.9" which is true now.
All I am trying to do is make it so that if your code says:

	package foo;
	$VERSION = qw$Revision: 1.10 $[1];
...

and another file has:

	use Foo 10.9; # success!
...

because that is what version tuples mean.  If the above comparison
took place using a numeric test, it would succeed (like with 
Exporter).  However, if you were using CPAN to download the 
files, it might fail (since at least sometimes CPAN uses an
ASCII comparison).

Thanks

John

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