in reply to XSUBs with variable input types

IIRC you do indeed need different XSUBS in this case, but you're free to put a polymorphic perl subroutine on top of it.

The Embedding and Extending Perl book handles this, and a lot more - I've found it very useful (I'm not much of a C programmer)