our $D = threads->new(\&Darling::run, ID => 'Darling' ); $D->detach(); ... while (my $client = $server->accept()) { #foreach $client my $pAddr = $client->peerhost(); ... }