Skip Menu |

This queue is for tickets about the Test-Needs CPAN distribution.

Report information
The Basics
Id: 114451
Status: resolved
Priority: 0/
Queue: Test-Needs

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: 'use Test::Needs perl => q[5.025]' -> Uninitialized warning

Because the documentation about

> use Test::Needs 5.020

Seemed clearly wrong to me, I went looking at the code to see what was really intended.

Reading the source lead me to think that the right way to do this was:

>  use Test::Needs perl => 5.020

However, what actually happens here is kinda surprising, and either the case should be supported, or a better warning/error should be given.

I of course, misunderstood the code I was reading, and the right equivalent syntax is

> use Test::Needs { perl => q[5.020] }

or

> use Test::Needs q[5.020]

I wish I'd spotted these potential confusion cases earlier, but I didn't because the large map structure
evaded my understanding of the logic.

 

Fixed in 0.002000