in reply to Calling C++ functions from Perl without using xsubpp
Have you looked at Inline::CPP, which allows you to seamlessly call C++ code from Perl and likely also Perl code from C++?