Tuesday, June 12, 2007

Embedding Perl

I searched for decent information on how to embed perl into an application, and found the following information useful and so I record it here for posterity.

The docs- perlembed, perlxs, perlguts and perlcall- were pretty handy, but what I really wanted to do was expose functions that the embedded script could call to change the state of the application.

I found just what I was looking for (after a lot of searching) in a Linuxjournal article, which is about embedding perl into an application called sc, and was exactly what I was looking for. That article introduced me to the function I need (newXS), and this article has some of the technical details.

No comments: