in reply to Re: Perl 5 API
in thread Perl 5 API

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

Replies are listed 'Best First'.
Re^3: Perl 5 API
by Joost (Canon) on Mar 25, 2007 at 12:27 UTC
    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.