1 2 3 4 5 6 7 8 9 10 11 12 13
$stdin = DATA print "Enter your first name: " fname = gets.chomp print "Enter your last name: " lname = gets.chomp puts "\nHello #{fname} #{lname}" __END__ Josh Cheek
1 2
Enter your first name: Enter your last name: Hello Josh Cheek