
tobi
New User
Jan 2, 2013, 5:31 AM
Post #1 of 3
(578 views)
|
|
Can't locate method "push_write"
|
Can't Post
|
|
Hi there! I'm trying to send a message via XMPP, but I only get the error:
Can't locate object method "push_write" via package "AnyEvent::Util::guard" at /usr/local/share/perl/5.14.2/AnyEvent/XMPP/SimpleConnection.pm line 113. All needed modules are installed and I don't know what's wrong here. This is the script:
#!/usr/bin/perl use utf8; use AnyEvent; use AnyEvent::XMPP::IM::Connection; use AnyEvent::XMPP::IM::Presence; use AnyEvent::XMPP::Util qw/split_jid/; my $con = AnyEvent::XMPP::Connection->new ( username => "root", domain => "perlx.de", hostname => "localhost", password => "123458765", resource => "Blubb" ); $con->reg_cb (stream_ready => sub { print "bereit!\n" }); $con->connect; AnyEvent::XMPP::IM::Message->new ( body => "test", to => "tk@perlx.de" )->send ($con); I am grateful for any help. Regards, Tobi
|