From: daz Date: 2005-08-13T03:06:11+09:00 Subject: Re: Another newbie question David A. Black wrote: > On Sat, 13 Aug 2005, [ISO-8859-1] Brian Schr�der wrote: > > > a minor correction: > > > > On 12/08/05, Julian Leviston wrote: > >> You'd probably want > > > > - puts "Please enter dollar amount": > > + puts "Please enter dollar amount:" > > gets line > > I'm almost certain he actually wants: > > line = gets raise 'almost certain' # :-) ------------------------------------------------------------ Kernel#gets gets(separator=$/) => string or nil ------------------------------------------------------------------------ Returns (and assigns to $_) the next line from the list of files in ARGV (or $*), or from standard input if no files are present on the command line. [...] STDIN.gets is safer for this case, I think. daz