# Hate to ask - weird puts/gets error

**URL:** <https://www.ruby-forum.com/t/hate-to-ask-weird-puts-gets-error/97118>\
**Category:** Ruby\
**Created:** [July 5, 2006, 1:33am UTC](https://www.ruby-forum.com/t/hate-to-ask-weird-puts-gets-error/97118 "2006-07-05T01:33:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [July 5, 2006, 1:33am UTC](https://www.ruby-forum.com/t/hate-to-ask-weird-puts-gets-error/97118/1 "2006-07-05T01:33:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [July 5, 2006, 1:43am UTC](https://www.ruby-forum.com/t/hate-to-ask-weird-puts-gets-error/97118/2 "2006-07-05T01:43:12Z")

</div>

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.
