Also you can look at the Inline module, it comes with a tutorial.
In reply to Re: calling C function from Perl by mirod in thread calling C function from Perl by Anonymous Monk