From: Brian Candler Date: 2003-05-22T16:31:05+09:00 Subject: Re: Strange mod_ruby On Thu, May 22, 2003 at 12:51:04PM +0900, Jim Freeze wrote: > On Wednesday, 21 May 2003 at 19:44:34 +0900, Brian Candler wrote: > > On Wed, May 21, 2003 at 04:56:51PM +0900, Dominik Werder wrote: > > So each script in run in its own anonymous namespace. But if they 'require' > > a library, then that goes into the shared top-level namespace: it doesn't > > make sense for each script to have its own copy of the dbi library, for > > example. > > > > So, how does one create an anonymous module (ie, one without a name > or a name that can be guaranteed to be unique)? foo = Module.new Or, to create an anonymous module and run some code inside it, use Kernel#load(filename,true) Cheers, Brian.