I'll bear both alternatives in mind when the time comes. In my early guessing, the Scalar::Util example seems better, because it hides the issue of XS or not to XS from the user.
many thanks, jeffrey kegler
Comment on Re: How to implement CPAN module variants