Help for use Net::YahooMessenger in perl

Discussion in 'Programming' started by k.i.s.t, May 11, 2007.

  1. #1
    Hi
    I wrote a script for connect and send a message to a id in YahooMessenger with perl.
    But this script is not working correctly.

    Script:
    
    #!/usr/bin/perl
    use Net::YahooMessenger;
    use strict;
    
            my $yahoo = Net::YahooMessenger->new(
                    id       => 'id',
                    password => 'password',
                    hostname      => 'scsc.msg.yahoo.com',
                    port => '5050',
            );
            $yahoo->login or die "Can't login Yahoo!Messenger";;
    	$yahoo->send('id2', 'Hello World!');
    
    Code (markup):
    Thanks for help
     
    k.i.s.t, May 11, 2007 IP
  2. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    what error does it give you?
     
    LeopardAt1, May 11, 2007 IP
  3. k.i.s.t

    k.i.s.t Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Nothing
    and my icon's id is off
     
    k.i.s.t, May 12, 2007 IP
  4. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It looks like the development of that module has been discontinued / doesn't work properly with Yahoo protocol anymore.

    Net::YahooMessanger

    Try looking for an alternative here (CPAN Search)
     
    CodyRo, May 12, 2007 IP