[Israel.pm] Embedding perl in a C++ program

Shlomi Fish shlomif at iglu.org.il
Thu Dec 30 23:09:02 PST 2004

On Thursday 30 December 2004 18:56, David Rachamim wrote:
> Hi all,
> I am trying to implement a Perl scripting extension to a GUI C++ program.
> This extension should provide the capability for the user to write Perl
> scripts/commands that will run in the context of the main application and
> will be able to interact with it. An example for such a script can be:
> my $i = call_some_perl_func();
> main_app_show_popup( "i=$i");   #should call a function on the main
> application (C++) and popup a message window there <<<<<

Refer to the perlembed POD document:


(sorry - perldoc.com is inaccessible - again.)


	Shlomi Fish

> (To be clear, this script should be written by the user in an edit bow in
> the main application and should run upon pressing a "Run Perl Script"
> button)
> 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.
> Thanks in advance,
> David
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl


Shlomi Fish      shlomif at iglu.org.il
Homepage:        http://www.shlomifish.org/

Knuth is not God! It took him two days to build the Roman Empire.

More information about the Perl mailing list