Have a look at the source (including Makefile.PL) of Math::Random::ISAAC, List::Binary::Search, and Bytes::Random::Secure for ideas of how. Also JSON, and Text::CSV.
Most or all of the above load a Pure Perl module in the absence of an XS alternative or the XS version if available. On Jan 17, 2016 9:12 AM, "Paul Bennett" <paul.w.benn...@gmail.com> wrote: > I'm PWBENNETT and I want to talk with GONZUS about Path::Hilbert::XS and > how I can make my Path::Hilbert automatically load your ::XS module under > the covers if it's installed. > > I welcome advice from anyone else who has experience shimming in ::XS > module alternatives if present. I know there are many of you out there; the > only one I can think of off the top of my head is INGY, but I don't mean to > single him out. > > Thanks in advance, > > -- > Paul W Bennett >