in reply to Client/server issues - Server is not receiving information until client closes the connection

For really simple Client/Server communication, you may want to try XMLRPC as implemented by the Frontier::Daemon and Frontier::Client CPAN libraries.
http://search.cpan.org/~kmacleod/Frontier-RPC-0.07b4/lib/Frontier/Daemon.pm
http://search.cpan.org/~kmacleod/Frontier-RPC-0.07b4/lib/Frontier/Client.pm
If you check out the description, the sample code provided looks even simpler than your own. Works for me...
  • Comment on Re: Client/server issues - Server is not receiving information until client closes the connection