improving Inline::C interface for perl wrapper