Subject: | Can't call method "can_read" on an undefined value |
Perl newbie. Unsure if problem is with call from Jabber::SimpleSend or
in Stream.
Can't call method "can_read" on an undefined value at
/usr/local/share/perl/5.8.7/XML/Stream.pm line 1439.
System:
Ubuntu 2.6.15-26-amd64-server #1 SMP Thu Aug 3 03:32:26 UTC 2006 x86_64
GNU/Linux
perl, v5.8.7 built for x86_64-linux-gnu-thread-multi
Show quoted text
cpan> i Jabber::SimpleSend
Strange distribution name [Jabber::SimpleSend]
Module id = Jabber::SimpleSend
CPAN_USERID GMCCAR (Greg McCarroll <greg@mccarroll.org.uk>)
CPAN_VERSION 0.03
CPAN_FILE G/GM/GMCCAR/Jabber-SimpleSend-0.03.tar.gz
MANPAGE Jabber::SimpleSend - Send a Jabber message simply.
INST_FILE /usr/local/share/perl/5.8.7/Jabber/SimpleSend.pm
INST_VERSION 0.03
Show quoted text-------------------script---------------
#!/usr/bin/env perl
#
use strict;
use warnings;
use Jabber::SimpleSend qw( send_jabber_message );
send_jabber_message( {
user => 'blah@blah.com',
password => 'blapass',
target => 'blah2@blah.com',
subject => 'testing',
message => "boss, I got troubles" } );
--------------------------
./test.pl
Can't call method "can_read" on an undefined value at
/usr/local/share/perl/5.8.7/XML/Stream.pm line 1439.