in reply to overloading functions and .XS

Of course. How do you think perl himself handles the select-function? If you need to declare two XS with one paramset each or one XS with varying args I don't know. I don't deal in XS but one method works for sure.