in reply to Internet TCP Clients and Servers

Maybe you should look at this node from earlier today. There are many examples out there, Net::Server and Net::Daemon being two of the most complete ones.