From: Guillaume Marcais Date: 2004-02-17T07:54:10+09:00 Subject: Re: has /foo/../bah/ changed? On Mon, 2004-02-16 at 16:04, Ronald E Jeffries wrote: > So on my old machine, this code seems to work differently from on the > new: > > def procfile (input, output) > @printfile = true > while input.gets > if /
procline(input, $_, output) > end > end > end > Change it to (untested): def procfile (input, output) @printfile = true while l = input.gets if l =~ /
On the old machine, only lines between a line that containing > " > On the new machine, running ruby 1.8.1, all the lines in the whole > file (input) are processed. > > What up with that, any clues? > > Thanks! > > -- > Ron Jeffries > www.XProgramming.com > I'm giving the best advice I have. You get to decide if it's true for you. >