
09/06/2006
Perl XS and SWIG interface to CLucene C++
text search engine
Interfacing Perl to C++
lWhen I wrote this wrapper, Perl to C++ interfacing via XS or SWIG was tricky and despite the optimism expressed at http://www.johnkeiser.com/perl-xs-c++.html I had difficulties mapping the CLucene API to XS
lReasons: C++ namespace
mangling; object and method
mapping; C++ memory garbage collection
lSo I decided to go via
the C DLL wrapper to hide this
complexity