in reply to Using C code in Perl

Have you thought of trying SWIG, even I found it very easy to use :-) Look at http://www.swig.org/