http://qs321.pair.com?node_id=819046


in reply to Can a socket listen for multiple hosts?

There are a lot of modules that can help in this process, and it might help to take a look at the documentation for a few on CPAN to see how you can use them for your particular application. For example, Net::Server and possibly Net::Server::Simple are easy to use and may work for what you are trying to do.