On 11/30/06, David Precious <[EMAIL PROTECTED]> wrote:
I've just had the same error from a different machine:

t/01_basic....nyEven: not a valid method for AnyEvent objects at
t/01_basic.t line 8

Ditto.  After some digging, it looks like $AUTOLOAD is getting mangled
before the method call (somewhere during detection of event modules),
so that the method call turns into another call to AUTOLOAD().

I saved it away in a lexical instead

     (my $fcn = $AUTOLOAD) =~ s/.*://;

and changed all references to $AUTOLOAD accordingly and it seemed to
work.  (Well, it hung up at first, then I upgraded Event.pm and then
it worked, but it didn't die the way it was.)

Also, for testing, you might want to force a particular event module
rather than rely upon whatever gets detected.  You could even re-run
the tests for each event module that is available.  You'd probably
have to use a code reference in @INC to make it work, but it would
probably lead to better information back from your test reports as
you'd be able to know exactly what the underlying module is.

Hope that helps,
David

Reply via email to