One can interface Perl5 code with C using an interface constructor called xsubpp |
This manipulates an existing C library and allows it to be accessed through a designated Perl module |
Simple datatypes can be handled automatically but user must manipulate complex C datastructures in special xsub code |
see PerlXS and PerlXSTUT manual entries |
Also PerlCALL and PerlEMBED manual pages describe how to call Perl from C |
One can add a Perl Interpreter to your C program, execute a Perl statement such as a pattern match or execute a full Perl subroutine |