thank you for your answer but that does not explain how to call a function from perl that is defined in the c++ code that embedded the perl code ...
i only found "How to export functions from C++ to embedded perl. Options"
http://groups.google.com/group/perl.xs/browse_thread/thread/190893fecc6bdc52