use Inline C; greet(); use Inline CPP => Config => ENABLE => STD_IOSTREAM; use Inline CPP => <<'END'; using namespace std; class JAxH { public: JAxH(char *x); SV* data(); private: SV *dat; }; JAxH::JAxH(char *x) { dat = newSVpvf("Just Another %s Hacker", x); } SV* JAxH::data() { return dat; } END print JAxH->new('Inline')->data(), "\n"; __END__ __C__ void greet() { printf("Hello, world\n"); }