in reply to Re: how to create a Perl module
in thread how to create a Perl module
I'll second this - SWIG is an amazingly easy and powerful tool. One thing to note - IIRC, only basic data types like strings, integers, and floats can be passed back and forth, so if you want to pass structs back and forth you'll need to write some gettor/settor functions in C, because otherwise the structs will be blind references. You may need some constructor/destructor functions as well to allocate/free memory.