in reply to Perl 5 API

You should probably choose an interpreted language that's easier to embed than perl, unless you specially need perl for some reason.

Here are some options. Python is said to be easy to embed, but I've never really looked at it, so I don't know. Ruby is easy to embed, but its API documentation is not nearly complete. Lua is also easy to embed, and its documentation is quite comprehensive. You need to take a mind leap to understand how the lua api functions work (namely that you can never manipulate pointers to lua objects directly), but the irc community is eager to help. MzScheme has a complete api documentation, but the interpreted language itself you might not like. There are lots of other interpreters I didn't even mention, so google or something if you like none of these.

Replies are listed 'Best First'.
Re^2: Perl 5 API
by packet (Acolyte) on Mar 25, 2007 at 10:16 UTC
    If i am right i could do it like this
    #include "EXTERN.h" #include "perl.h" Package name code goes here.

    20070404 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips

      Do what, exactly? We are not mind readers, you know.

      What you're describing looks vaguely like the start of an XS file.

      Do you know any C? If not, get yourself an good introduction text. Personally, I've always liked The Joy of C, but there are probably plenty of tutorials on the web.

      Also, I suggest you read chapter 2 of the extending and embedding perl book. It should clear up a lot of your confusion.