http://www.perlmonks.org?node_id=142940


in reply to Problem with example UDP script from Perl Little Black Book

IO::Socket:INET is case-sensitive, so you must use PeerPort and PeerAddr, not peerPort and peeraddr.

Though, it won't solve your problem in this case, I strongly advise quoting strings and using strict and warnings. It is likely to save you time in the future.