in reply to embedding C in Perl?

The Inline::C module by Brian Ingerson should help you do that.