Re: Module::Build cannot check required version of Parse::RecDescent 1.95.1

[email protected] (John Peacock)
Newsgroups perl.module.build
Message-ID <[email protected]>
Dominique Dumont wrote:
> $ perl Build.PL
> [...]
> Checking prerequisites...
>  - ERROR: Parse::RecDescent (1.95.1) is installed, but we need version >= 1.90

> Is this a bug from Module::Build or Parse::RecDescent ?

In order to map 5.006001 to v5.6.1, all numeric versions (like 1.90) are 
parsed as if there were three places to the right of the decimal point. 
  So 1.90 is equivalent to 1.900.0 for comparison purposes, which is 
larger than 1.95.1.

Since you control this Build.PL (if I'm reading your email correctly), 
you only have the change this line:

	'Parse::RecDescent' => '1.90',

to be

	'Parse::RecDescent' => '1.90.0',

and you will be golden.

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.