For a call from perl to C, a common library, rather than a static library, from its c code is usually compiled, and then it is loaded into the perl interpreter using the XSLoaderor module DynaLoader.
C perl-, . , XSUB s, perl-, perl C- C. XSUB , perl XS, perlxs perlxstut.
-, , XS, SWIG. C , NCI. Perl . P5NCI - , ctypes, , Google Summer of Code - .
, , , , - Inline::C Inline. perl . Inline:: C XS .