use Inline C => << 'END_OF_C_CODE'; char * return_string (int pnt) { char *str = pnt; return str; } END_OF_C_CODE my $string = return_string($pnt);