$test->execute( sub { print "in the local coderef\n"; helper(); } ); #### sub helper { print "in helper\n"; }