in reply to Perl & C

I think you'll find that Inline::C is the best tool for this job. XS can be marginally easier if you have a large API to wrap, but the learning curve is steeper. I'd reserve SWIG for cases where you want to wrap a large C library for use in more than one scripting language.

You might be interested in checking out my book, Writing Perl Modules for CPAN. I wrote a chapter each about the Perl C API, XS and Inline::C. You can even download a free copy!

-sam

Replies are listed 'Best First'.
Re^2: Perl & C
by thekestrel (Friar) on Mar 28, 2005 at 23:30 UTC
    Sam,
    Thanks for the Links, that is exactly the sort of thing I was after, a good ease into both Inline and XS so I can then take on all the man pages and have an idea what they're on about.

    =)



    Regards Paul.