On Tue, Oct 13, 2009 at 9:29 AM, O. STeffen BEYer <ost...@gmail.com> wrote: > Hi Ryan, > > thanks a lot for your fast response (see a copy at the bottom of this > message for convenience)!
See also Devel::CheckLib, which can check for a compiler for you (just don't specify a lib) and has a handy command line utility to bundle itself in inc/ and add itself to your *.PL file. > But how would I then test both module versions (Date::Calc and Date::Pcalc) > with the same test suite, without duplicating code? See Test::NoXS, which disables dynamic loading. I would put the tests into functions in a utility module in t/ and have separate .t files for XS and PP. The PP one should use Test::NoXS (with your module name as an argument), then load your module, then run the tests from your utility module. > And how would I rely on the Perl version in the C/XS version "if something > goes wrong"? > > Something along these lines? Pretty much. I'd suggest copying what List::Util does. -- David