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.