develooper Front page | perl.perl5.porters | Postings from January 2005

Re: [Module::Build] Re: [perl #33927] [BUG] Coredump in 5.9.2 whenevalling a certain string while in a coderf in @INC

Thread Previous | Thread Next
John Peacock
January 26, 2005 12:19
Re: [Module::Build] Re: [perl #33927] [BUG] Coredump in 5.9.2 whenevalling a certain string while in a coderf in @INC
Message ID:
Ken Williams wrote:

> That won't work.  All those tools evaluate the version line in 
> isolation, not by loading the modules and checking the value of 
> $VERSION.  In other words, when Module::Build::Base's version is 
> checked, Module::Build won't be loaded, so the version would be undef.

Ahh, good point!  That leaves targeting the regex to exclude the fake 
$VERSION assignment _or_ adding a real $VERSION assignment to M::B::Base 
upstream of the other usage.

Alternatively, the code in M::B::Base that only /looks/ like a $VERSION 
assignment can be removed and the M::B fixed to work correctly under 
'use version;' since, as I keep saying, that code is the only code that 
exists in bleadperl.  'use version;' is a pragma and has no effect with 
bleadperl or better:

	bootstrap version if $] < 5.009;

I think this is likely the best route in the long term, since M::B is 
going to have to play nice with version objects if it is going to go 
into the core for 5.10.0...


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About