in reply to Why my socket is not send and receive data???

Your call to IO::Socket::INET->new isn't quite right.
my $MySocket=new IO::Socket::INET->new ( LocalPort => $s->{LocalPort}, Proto => $s->{Proto} );
You've got two "new"s in the line.

Replies are listed 'Best First'.
Re^2: Why my socket is not send and receive data???
by ikegami (Patriarch) on Aug 19, 2006 at 18:24 UTC

    Good catch. He also needs to specify Listen for a server socket.

    Update: I'm so used to seeing TCP code, I first assumed the OP was using TCP. See my other post for more details.