From: shugo@... (Shugo Maeda) Date: 1999-01-20T22:44:42+09:00 Subject: [ruby-talk:00202] Re: execute if called rather than required Julian Fondren writes: > What is the ruby equivalent of python's > > if __name__ == '__main__': Try this: if __FILE__ == $0 ... end Shugo