in reply to Perl & C
If you go for XS, h2xs is a good start point. Don't be afraid. It seems harder than it really is.
Alberto Simões