I’m trying to learn Ruby and trying to convert a Perl program at the
same time. I need to prompt a user to enter a number to select a
processing option. In Perl, I did it this way:
print STDERR "Enter option: ";
chomp ($option = );
I’ve searched the web and several books, but I haven’t found anything
that works. It also seems that my system doesn’t recognize “gets”. Can
anyone help me out, and maybe post a simple input routine I can look at?