There are examples of working client and server code based on IO::Socket in perlipc.
In reply to Re: Socket Connection issue by ig in thread Socket Connection issue by mewundi