in reply to client script for interacting with inetd service
You probably want to start by looking at the section entitled "TCP Clients with IO::Socket" in the perlipc manpage.
/J\