From: Michel Demazure Date: 2007-07-03T02:59:42+09:00 Subject: getting rid of $0 The common idiom if __FILE__ == $0 then ... gives bugs when $0 is not what one would expect, for instance under a debugger, or in rubyscript2exe, etc. There should be a primitive test if then... -- Posted via http://www.ruby-forum.com/.