I currently have two separate modules I would like to combine. One requires xs code and is only usable on openbsd. The other is its portable version in pure perl. In the Makefile.PL I check the $^O and bail out if it returns openbsd. I'm not sure how best to combine the two. It seems like there would be some simple way of doing so, but I'm afraid I will fall down a rabbit hole trying various methods. I'm willing to bet there is a module or two with similar problems that I could take a look at. Unfortunantly I don't know which. Any advise is appreciated.