From: Bil Kleb Date: 2007-11-13T12:05:04+09:00 Subject: Re: comp.lang.fortran challenge James Edward Gray II wrote: > > Well, I don't think it's the same. Is it? Seems to work at least according to the anti-pattern of testing: guru scans output. >> when /^\s*$/, ios.eof? then # output UVs and reset U & V arrays > > Won't that check if the contents of line match the Regexp or if the > contents of line match the true/false returned by eof?(). That's not > what we want. You're of course correct, but apparently the ios.eof? isn't needed anyway... In fact, simply else # output UVs and reset U & V arrays is sufficient because of your next if us.empty? or vs.empty? Later, -- Bil Kleb http://fun3d.larc.nasa.gov