From: James Edward Gray II Date: 2007-11-13T12:34:39+09:00 Subject: Re: comp.lang.fortran challenge On Nov 12, 2007, at 9:05 PM, Bil Kleb wrote: > James Edward Gray II wrote: >>> 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? That's true only if the document contains a blank line after all of the data. My pasted content from the original email did not, so that didn't seem a safe assumption to make. James Edward Gray II