> On Jan 17, 2016, at 11:43 AM, Shlomi Fish <shlo...@shlomifish.org> wrote: > > Hi Paul, > > On Sun, 17 Jan 2016 11:12:17 -0500 > 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, >> > > I think you can do something like > > if (eval { require Path::Hilbert::XS; } and (!$@)) > { > # Do something with @ISA or whatever. > } > > Or is that not what you mean?
Have you had a look at https://metacpan.org/pod/Module::Implementation ? Olaf