I have a question about embedding Perl scripts in C. I wrote most of the program in C and a portion of it in Perl. As of right now, to call the Perl script I'm using pipe(), fork() and dup2() to create another process and have the Perl application write its stdout to the pipe. This works fine, but I don't want to have to lug around the Perl script whenever I want to run my program. I understand that I can add a Perl interpreter to my C code, but as far as I can see this leaves me I the same boat as I was previously unless I rewrite my Perl code so that it fits the perlapi.
I was wondering if it is possible to just compile my Perl script into the executable binary and use the embedded Perl interpreter to handle it? Thanks!