in reply to newbi with inline C
Never mind, sorry for the noise.
use Inline C;
Never used it but you will have better luck I think with:
use Inline::C; [download]
Hope this helps!