In article <[EMAIL PROTECTED]>, Luke Closs <[EMAIL PROTECTED]> wrote:
> On 2/23/07, A. Pagaltzis <[EMAIL PROTECTED]> wrote: > > > > * Dominique Quatravaux <[EMAIL PROTECTED]> [2007-02-23 11:35]: > > > And, uh, how about this: > > > > > > use lib 't'; > > > use mock::LWP::Simple; > > > > That will not call the importer in the right package. > > > > To expand on this answer, without funky voodoo, after loading > mock::LWP::Simple perl won't think it had loaded LWP::Simple. That's not so hard to fix though. The mock class just needs to know how to tell Perl it's already loaded whatever its mocking. It's not that funky, at least compared to what the proposed pragma does.