From: Marnen Laibow-Koser Date: 2010-02-02T10:19:25+09:00 Subject: Re: Workaround for "conflict" between ARGV and gets? RichardOnRails wrote: > On Feb 1, 1:18�am, Ryan Davis wrote: >> > with that directory. >> > ARGV = [] � � � � � � � � � � � � �# Reset ARGV to an empty array >> > puts "Delete indicated item [yes, no]" >> > STDOUT.flush >> > response = gets.chomp � � �# doesn't go to STDIN !!! >> >> ri IO.gets >> ri Kernel.gets > > I see, Ryan. What I should have done to understand the problem fully > was: > > puts gets.class # => String > > which makes it clear why I didn't get the 'native' versions you > pointed out. No it doesn't. All it tells you is that gets returns a String. [...] > It all begs the question: When will I learn enough Ruby to program > without you guys :-) That depends on you. Good luck! :) > > Best wishes, > Richard Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.