in reply to Re: calling C function from Perl
in thread calling C function from Perl

There is also an article on Inline.pm in the latest issue of The Perl Journal. Aside from XS and Inline, you may also want to look at SWIG.

Cheers,
KM