in reply to Perl and C/C++ APIs
SWIG and XS are both usable ways of adding C++ libraries to Perl. It's also a great way to combine the flexibility of the Perl interpreter with compiled code for commercial applications.
Check out CH. 20 of Advanced Perl Programming (O'Reilly, S. Srinivasan), the "Panther Book".
Caveat: it takes a while to set up either of these environments, but integration is swift once you have done so. Each has its advantages and disadvantages. SWIG is simpler, but XS is much used for .pm's so it might be worth your time to study. C2: These are 'nix-based solutions, YMMV on Doze.