From: Jeff Cohen Date: 2005-12-13T12:57:24+09:00 Subject: How to exit Ruby program properly I'm learning to write ruby code, and I'm using 1.8.2 on Windows XP. What is the best way to exit from my .rb script? I'm using Process.exit but the documentation implies that it will throw an exception. So I'm guessing there's a "cleaner" way to exit? For example: test.rb ==================== if ARGV.length == 0 puts "Please specify a filename" Process.exit end # script continues here... Thanks! Jeff -- Posted via http://www.ruby-forum.com/.