From: Alex Gutteridge Date: 2007-10-29T12:06:10+09:00 Subject: Re: puts gets On 29 Oct 2007, at 11:01, Lloyd Linklater wrote: > I write this: > > > puts "foo" > some_var = gets > > I expect the foo to show up before the gets occurs but it does > not. Any > ideas? The puts maybe buffered. Does this work as you expect: $stdout.sync = true puts "foo" some_var = gets Alex Gutteridge Bioinformatics Center Kyoto University