in reply to How to call C++ from perl

You may want to take a look at Inline::CPP.

-- Douglas