[EMAIL PROTECTED] writes:
> Hi Guys,
>
> I'm creating a perl script that sends message to Yahoo Messenger. I
> start-off with a simple test script. My script goes like this:
[...]
> Above script doesnt work at all and I get a message of "Operation now
> in progress at /usr/lib/perl5/site_perl/5.8.8/Net/YMSG.pm line 344."
In some happy coincidence, I tried doing this in Net::YahooMessenger,
which is another module in CPAN, yet happens to have almost the *exact
same code* as Net::YMSG, differing mostly in pod comments and
indentation :/
I fixed the above problem by adding `hostname => 'scs.msg.yahoo.com'` in
the new() invocation, allowing me to do login(), but upon doing start()
it b0rks at line 164 (in login(), of all places, adding an event
handler) due to an undefined scalar being fed to a handler object. I
suspect Net::{YahooMessenger,YMSG}::EventFactory is out of date.
> I had installed modules Net::YMSG and IO:Socket.
>
> Any ideas how can I make this function? I searched the web for this
> but others with the same problem got no answers.
>
> Hope you can help me. I need it badly for network alerting.
Try POE::Component::YahooMessenger instead, as most Net:: modules are
being quietly displaced by POE components; however, you may not be
prepared to learn yet another framework for manipulating network objects
in Perl (POE::CoYM gets its initial design from POE::CoIRC, so there.)
On the other hand, you might want to consider using another messaging
service with better and more stable APIs, like Jabber (there's
Net::Jabber) or AIM (Net::AIM); you might also want to use persistent
webpresence services Twitter (there's Net::Twitter)
Cheers,
Zakame
--
Zak B. Elep
[EMAIL PROTECTED]
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph