perl-ExtUtils-CBuilder -- Compile and link C code
http://search.cpan.org/dist/ExtUtils-CBuilder/
With this perl module, you can compile and link C code for perl modules