in reply to Re^4: typemap problem
in thread typemap problem

You shouldn't need to write it, it's already written. Almost nobody uses swig. see perlxs