47 users online (0 members and 47 guests)  

Thread: stock Problem


  Results 1 to 2 of 2

Related

  1. Trying to Launch Reality TV Stock Exchange    Forum: Link Exchange
    Replies: 0
  1. #1
    mjmjmj's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2006
    Posts
    1

    stock Problem

    hi guys sorry me for my poor english

    i have a perl source code that work



    Code:
            my $host=$_[0];
            my $sock = new
    IO::Socket::INET(PeerAddr=>$host,PeerPort=>'4444',Proto=>'udp');
            die "Could not create socket: $!\n" unless $sock;

    now i whant add LocalPort to this code taht specify the source port what i must to do? i change that to this but get erorr
    Code:
            my $host=$_[0];
            my $sock = new
    IO::Socket::INET(PeerAddr=>$host,PeerPort=>'4444',Proto=>'udp',LocalPort=>'27005');
            die "Could not create socket: $!\n" unless $sock;

  2. #2
    nishanth's Avatar
    Disabled

    Status
    Offline
    Join Date
    Apr 2006
    Posts
    4

    Re: stock Problem

    Hello,

    I could not find any syntax error with the file.
    I just added the line
    use IO::Socket::INET
    and the programe compiled as below.
    perl -wc sock.pl
    Just let me know what is the exact error encountered.

    Regards
    Nishanth



Tags for this Thread