use Test; use Data::Dumper; use Inline Config => DIRECTORY => './blib_test'; BEGIN { plan tests => 2 } use Inline Python => <(), 'hello Python'); $sub = get_sub_with_arg(); ok($sub->('hello Python'), 'hello Python');