use warnings; use strict; use Inline C => Config => ccflagsex => '-lblah'; use Inline C => 'END'; say(); __END__ __C__ void say() { int x = myget(); printf("myvar: %d\n", x); }