From: Markus Fischer Date: 2010-08-29T20:11:15+09:00 Subject: Re: require from a method Hi, On 29.08.2010 12:40, Robert Klemme wrote: > On 29.08.2010 12:25, Ammar Ali wrote: > >> Are there any gotchas in requiring files from within a method? It >> seems to work, but I have a sinking feeling that I'm missing something >> here. > > Not technically. It might even be more efficient if you require a > particular functionality only rarely and include the "require" in the > method that needs that functionality. Sorry for hijacking, but I'm wondering how require exactly works in the context of a class or method; does scoping play any role if I've defined classes/modules in the required file? thanks, - Markus