Any advice is appreciated
OK, then I'd say: drop both approaches and embed the Perl interpreter in the C program (means: link the perl58.lib to the executable and initiate an internal perl instance after going trough main).
You could then read a totally garbled data file from there and decode it to an runable perl source internally and invoke it through the "internal" Perl instance.
I did this in Unix and Win32 environments and it works good and is perfectly portable (did it without the garbling/decoding step ;-).
see: perlembed
Regards
mwa
In reply to Re: Blending perl and C (two approaches)
by mwah
in thread Blending perl and C (two approaches)
by holandes777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |