From: Lloyd Zusman Date: 2002-09-20T09:29:31+09:00 Subject: Re: Error in Sys::Host on FreeBSD Lloyd Zusman writes: > [ ... ] > > The error occurs when I run the test.rb program with the final line > uncommented, as follows: > > #!/usr/bin/ruby > > require "sys/host" > include Sys > > puts Host.hostname > puts Host.ip_addr > Host.ip_addr{|ip| puts ip} I just discovered that if I use "each" in the final line, the error goes away ... Host.ip_addr.each {|ip| puts ip} I'm not sure if the final line in test.rb has a typo, or if this a bona fide bug because the ip_addr method is supposed to properly handle iterators. But anyway, at least I can use the module without a problem now. > [ ... ] -- Lloyd Zusman ljz@asfast.com