in reply to Re^2: UDP server with IO::Socket::INET
in thread UDP server with IO::Socket::INET

Try Net::Connection::Sniffer. It supports what you are trying to do.