From: Roger Pack Date: 2007-08-15T11:21:57+09:00 Subject: Re: IPSocket::getaddress problem success = false begin a = IPSocket::getaddress('their input') success = true rescue Exception => detail # arr! evil address success = false end Haze Noc wrote: > Hey guys, I want to test if IPSocket::getaddress('address') is valid > before printing it or anything.. > > If the user enters an invalid address then the program dies, i tried > rescuing the error but i didn't have much luck, any ideas? > > Thanks in advance -- Posted via http://www.ruby-forum.com/.