Inline C is great, but swig will make a nice little .pm and .so file for you.
In reply to Re: creating module for Inline C by zentara in thread creating module for Inline C by Anonymous Monk