in reply to C++ Code in Perl

As well as Inline::CPP you can use XS for accessing C++ classes and methods. Here is a useful tutorial. You can use the Inline::CPP makefile which helps make it cross platform. Note that I have found CL.EXE very difficult to work with ie Perl/XS/C++/Win32 however g++ seems to work fine Perl/XS/C++/Linux. See C++ and XS compile issues on Win32. Your C++ header files need to appear first in your XS or XS gets confused about the language and tries to compile C++ code as C. If there is an option perl and C fit hand in glove. Perl and C++ is a bit more iffy.

cheers

tachyon