use strict; use Inline ( C => 'DATA' ); print add(3, 5); 1; __DATA__ __C__ int add(int x, int y) { return x + y; }