in reply to Interacting c language functions thru perl
Read the Inline::C Cookbook for many examples of its use.
-David.