in reply to calling C function from Perl

Use Inline, which will let you embed your C code into the Perl code eazily. It also makes making modules easier, so you'll be able to make, say, RedWolf::Graphics.

--
$Stalag99{"URL"}="http://stalag99.keenspace.com";