in reply to LAN Chat

I'd start reading the books:

There is a bit in the Camel about networking
There is more in the Panther (Advanced Perl Programming),
and for some working examples the is the Ram (Perl Cookbook).