John Peacock wrote:
> Michael G Schwern wrote:
>> So what's the warning you're seeing?
> 
> WARNING: VERSION takes a string/number not a version reference.
>          Please inform the author.
> 
>>From this chunk here (in _verify_att):
> 
>             warn "WARNING: $key takes a $takes not a $has.\n".
>                  "         Please inform the author.\n";
> 
> but I'm having a brainfart trying to make it happen again.  I'll check through
> my various collections of e-mails to see when it got reported to me...

As that subroutine is only called in one place, its the very first thing in 
WriteMakefile() even before a MakeMaker object is created, I can say its fairly 
impossible to get that from a $VERSION declaration.

What probably happened is this:

    use ExtUtils::MakeMaker;
    use version;

    WriteMakefile(
        NAME    => "Foo",
        VERSION => qv(2.0.0),
    );

If the _verify_att() code is going to start working with objects then the code 
has to
A) Start using ->isa().
B) Stop doing the reference check case insensitively.

Reply via email to