> Is there any Module/Function that [...] interact with the
> sockets on remote machine?.
Yes, IO::Socket::INET.
> I am not able to find this function in IO::Socket::INET.
use IO::Socket;
$socket = IO::Socket::INET->new(....);
print $socket "question\n";
$answer = <$socket>;
close ($socket);
or similar.
> Actually my program should create a socket on a remote
> machine
Connecting and interacting with a listening socket on a
remote machine is one thing. Creating a remote socket
remotely, well, that's a whole different kettle of fish! Can't
help you there!