in reply to how use the Inline::CPP module with a custom library
That rings a bell. Maybe this will be helpful shared mem segments with Inline::C. Of course I'm not expert on this.