From: Ezra Zygmuntowicz Date: 2005-08-13T01:57:46+09:00 Subject: Re: Another newbie question > >> >> How do I request input from the user such as: >> >> >>>> Please enter dollar amount: >>>> >> >> I would like the prompt to display and the user to be able to >> enter the >> data after the prompt. I thought "gets" would do it but I don't >> understand how to get the prompt to display. >> >> > ] Do this first: $ sudo gem install highline Then you can get nice prompts like this: #!/usr/local/bin/ruby require "rubygems" require "highline/import" dollar_amt = ask("Please enter the dollar amount : ") Then you can just use dollar_amt however you want and when you rub your program it will prompt for the input and once it gets it it will assign it to dollar_amt. Nice and simple. Thanks to James and Greg. HTH- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster 509-577-7732 ezra@yakima-herald.com