use warnings; use Inline C => <<'EOC'; void foo() { fputs("hello world", stdout); } EOC foo();