From: "ara.t.howard" Date: 2008-06-12T01:46:30+09:00 Subject: Re: how to avoid multiple inclusion of a file On Jun 11, 2008, at 10:34 AM, suresh wrote: > Hi Jason, > > Will tell you what happened to me. I had some database populating code > in some import class definitions. By mistake that file got included > twice and I had to spend a lot of time to figure out how this > happened. So thats why my question, how can I avoid multiple inclusion > of files. > > suresh if you are writing the files that are included you can self-protect them unlss defined? $mylib module MyLib end end however, if you expect something like rails or ramaze to autoload these files in development mode think twice. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama