Chris Dolan writes: > The problem is that I don't know how to distinguish between a load > failure or a compile failure.
In this particular case you can get the failure by removing Bar from %INC before checking that it loads: use_ok('Foo'); delete $INC{'Bar.pm'}; use_ok('Bar'); In general that seems a reasonable thing for use_ok to do itself: if you want to test that the specified module can actually load right now then you don't the results to be contaminated with what might've gone before. Smylers