http://www.perlmonks.org?node_id=994377


in reply to Re^4: reading C data structure
in thread reading C data structure

So in fact it seems you have some C code that you need to access from Perl. The key "word" you need is "XS" and the documentation is in perlxs. You will probably find that documentation heavy going. If you describe what you are doing better you may garner more help. Calling some C code from Perl and returning a result is a very common task.

True laziness is hard work