in reply to UDP Sockets

By your code, you never asked the socket what the reply was. Call recv, or with IO::Socket, defined $sock->recv(my $rmsg, $len, $flags) or die $!; See perlipc.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: UDP Sockets
by monarch (Priest) on Jun 19, 2005 at 23:50 UTC
    A quick search using google revealed this link with a short tutorial on socket programming with UDP.

    UDP is a packet-oriented protocol, so you have to send whole packets and receive whole packets. You can't try reading a UDP socket line by line like you may do with TCP.

Re^2: UDP Sockets
by andy7t (Initiate) on Jun 20, 2005 at 14:36 UTC
    Tried that, but nothing was returned :-(. Maybe my counter strike server isn't sending back any information. Perhaps i've got the wrong command to send it :-S.