use HTTP::Daemon; $HTTPserver = HTTP::Daemon->new(Timeout => 600); print "My URL is: ", $HTTPserver->url, ".\n"; while ($HTTPclient = $HTTPserver->accept) { $HTTPclient->autoflush(1); print $HTTPclient ' Welcome to my Web server!

Welcome to my Web server!

'; $HTTPclient->close; }