Incompatibility between AnyEvent and Config::Std
Rob Schaber
robschaber at gmail.com
Sun Dec 23 02:56:46 CET 2012
I can't get these two to play nicely together. This code:
use Config::Std;
use AnyEvent;
AnyEvent->condvar;
produces:
Unable to create sub named "" at C:/Perl/perl/site/lib/AnyEvent.pm line
1522.
The offending line:
goto &{ UNIVERSAL::can AnyEvent => "SUPER::$name" }
I'm using the latest version of both modules and got the same error on
Windows and Linux (perl 5.14). I looked in the docs to try to figure out
what was going on and noticed in `perldoc UNIVERSAL`:
# but never do this!
$sub = UNIVERSAL::can($obj, "print");
with more discussion here:
http://stackoverflow.com/questions/204316/why-shouldnt-i-use-universalisa
But that's as far as I got before my brain exploded. This sorcery is
beyond my experience level so I'm probably on the wrong track, but I
thought I'd bring it to your attention.
More information about the anyevent
mailing list