On Sun, Sep 25, 2005 at 06:00:04PM +0200, demerphq wrote: > Is there a proper way to test both parts of dual implementation modules? > > In a pinch i came up with > > use DynaLoader; > sub DynaLoader::bootstrap{1}; # Don't dynaload anything please. > > use Scalar::Util qw(refaddr); #pure perl implementation > > to disable an XS implementation of a module that used DynaLoader, but > im wondering if there is an approved generic way to do this in a more > targetted way?
Since there's very few XS modules which don't use DynaLoader (Swig?), the above should be fine. And as the author of the module you know the guts of your module. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern ROCKS FALL! EVERYONE DIES! http://www.somethingpositive.net/sp05032002.shtml