is it possible (and if how) to call the foo() function located in the calling c++ code from within the embedded perl code (while the c++ script ofc is running ... i dont look for some simple perlXS module stuff to load "dead" code)?
if anyone cares to write a very basic example that would be awesome becaus that thing is hardly documented if at all :-(
the hole story is:
i am injecting a c++ dll into a game to have some fun and i want perl to play the AI part (controlling my units) ... so perl gets some info about the game state, does some WICKED(tm) computing and calls the appropriate funcs() from the c++ script (which is still running ofc) which are then hooks into the actual game ...