[Israel.pm] Embedding perl in a C++ program
gaal at forum2.org
Thu Dec 30 09:43:04 PST 2004
David Rachamim wrote:
> I saw that it is not too hard to embed a Perl interpreter into my application, but I couldn't figure out how I can cause the running Perl script to interact with the main C++ application.
> I guess this task is not trivial, but I'll appreciate any help on that - even a reference to an application that does something similar can help.
Check out Inline::CPP. The glue will be taken care of for you and
you will be able to call into your app from perl code. You are
responsible for making sure your embedded perl interpreter plays
nice with the application's even loop.
Gaal Yahas <gaal at forum2.org>
More information about the Perl