in reply to Writing Daemons

The Perl Cookbook has good info on this, and so does the Advanced Perl book. However, you will usually be better off starting with something on CPAN like Net::Daemon or Net::Server or Net::ServerGeneric.