From: Hal Fulton Date: 2003-12-07T04:29:16+09:00 Subject: Re: Ideas for replacing $0==__FILE__ T. Onoma wrote: > Do I understand you correctly, Hal? Sorry, I was unclear. It's like this: #!/usr/bin/ruby (treat as normal code) __FOO__ (execute only if this is the main file, not a required/loaded file) __END__ (any data) where FOO is some marker, either MAIN or TEST or something else. Better? Hal