From: Akchizar Date: 2006-07-05T08:42:25+09:00 Subject: Re: Hate to ask - weird puts/gets error Hate to say it, but it is a typo: >print = 'Enter hour: ' Note that = sign that isn't supposed to be there. If it helps, I ended up copying it by hand, finding my version worked, and vimdiff'ing the two files before I saw it. On 5/07/2006, at 11:31 AM, Dark Ambient wrote: > Sorry, I didn't want to be back here today. > Having a problem with some interaction , basically things just freeze > up. This is in Scite. I tried the same code in irb , everything is > fine. > > print 'Enter birth year: 0000 ' > byear = gets.chomp > print 'Enter month: 1-12 ' > bmonth = gets.chomp > print 'Enter date: ' > bday = gets.chomp <------right after I hit enter on this > print = 'Enter hour: ' <-------hangs, never asking for hour, if I hit > enter a few times > bhour = gets.chomp > print 'Enter minute: '<------it goes immediately to this > bminute = gets.chomp > print 'Enter seconds ' > bsecond = gets.chomp > > bddate = Time.mktime(byear,bmonth,bday,bhour,bminute,bsecond) > > Weird ? > Any idea ? I really hope this isn't a typo that a dozen reads > hasn't revealed. > > TIA > Stuart >