in reply to Clean closing sockets
use Socket; ... setsockopt(SOCK, SOL_SOCKET, SO_REUSEADDR) or warn "OOPS, setsockopt failed $!\n"; [download]