use Inline C => <<'END_C'; int is_int(char* str) { int i=0; char c; while(c = str[i++]) { if (c < '0' || c > '9') return 0; } return 1; } END_C