in reply to Perl network programming

You'll likely get much better (or some) answers to your question if you post the code that isn't working.

Please remember to show only as much code as is needed to replicate the problem. Also, have a look at Writeup Formatting Tips to see how to post code effectively.

-David