Talk in what sense? You could talk using sockets.
You could write client-server
software--perhaps the server in Perl, the client in Java,
or the other way round--open up a socket connection, then
talk through the socket.
Does that fit with what you're trying to do? If not, could
you give some more details?