in reply to Perl & C

I would suggest you to go into XS or Inline C. Just remember that Inline C is XS anyway. It is just an easier way to write them.

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