From: "Hal E. Fulton" Date: 2002-06-22T13:20:18+09:00 Subject: What do you think of this idiom? I was writing a little script which prompted the user for a directory. I wanted to repeat until a valid directory was entered. At first I was going to write an actual loop. Then I thought of this little technique. What do you think? How would you do it? Cheers, Hal Fulton begin print "Dir = " mydir = gets.chomp dir = Root + mydir raise "No such directory" if not File.stat(dir).directory? rescue => err puts err retry end