It has aliased names or addresses?
The thing that makes me go hmmmm is that you are getting the ip address in Java by handing it the hostname.
In perl, you already have the address? How does $address relate to $hostValue in the perl?
"Whenever you find you are on the side of the majority, it is time to pause and reflect" --Mark Twain
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them." --Albert Einstein
"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses." --George W. Bush