Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AnyEvent not working in Windows 2000

7 views
Skip to first unread message

Javier Marcon

unread,
Nov 13, 2012, 1:41:25 PM11/13/12
to win32-...@perl.org
Hello I installed Net::RabbitFoot (that uses AnyEvent) on Windows 2000
(with a Strawberyperl installation) and it doesn't work, it gives this
error:

Can't use string ("") as a subroutine ref while "strict refs" in use at C:/straw
berry/perl/site/lib/Coro/AnyEvent.pm line 147.

The same scripts in Ubuntu Linux work fine.

How can I fix it to make it work?

Thanks,

Javier.

Olivier Mengué

unread,
Nov 14, 2012, 4:01:47 AM11/14/12
to win32-...@perl.org
2012/11/13 Javier Marcon <javier...@gmail.com>

> Hello I installed Net::RabbitFoot (that uses AnyEvent) on Windows 2000
> (with a Strawberyperl installation) and it doesn't work, it gives this
> error:
>
> Can't use string ("") as a subroutine ref while "strict refs" in use at
> C:/straw
> berry/perl/site/lib/Coro/AnyEvent.pm line 147.
>

Line 147 of Coro::AnyEvent in Coro 6.10 is POD text, so I suspect that you
are not using the latest version. So try to upgrade this module first.

Which version of StrawberryPerl do you use?


>
> The same scripts in Ubuntu Linux work fine.
>

Check if you are using the same version of Perl and of each module
dependency (not just Coro).
You can use Devel::TraceUse to list all modules loaded by the script.

Olivier.
0 new messages