--8323328-764081161-11238766671614 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-764081161-1123876667=:21614" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-764081161-11238766671614 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Sat, 13 Aug 2005, daz wrote: > > David A. Black wrote: > >> On Sat, 13 Aug 2005, [ISO-8859-1] Brian Schröäer 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. > [...] Yes -- hence my original reply: I doubt it, unless you've got some reason to expect the input to terminate with whatever line contains :-) > STDIN.gets is safer for this case, I think. What would be the non-safeness of gets? David -- David A. Black dblack / wobblini.net --8323328-764081161-11238766671614-- --8323328-764081161-11238766671614--