In relation to this bug:

  http://use.perl.org/~Ovid/journal/33441

I had use_ok('Some::Module', @import_list) appear to succeed, even though it 
had not.  The imports weren't imported and that's because I had a previous 
failure with:

  eval 'use Some::Module';
  ok $@ ...

That put 'Some/Module.pm' in the %INC hash, preventing it from being reloaded 
with use_ok().

In this case, I think either use_ok() should fail (which might break some test 
suites since its behavior has changed), or that it should issue a warning if 
$module is found in %INC.

Does this sound reasonable?

Cheers,
Ovid
-- 
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/



Reply via email to