in reply to Quickly changing a function under test in Test::More

my $function = sub { print "hi there @_\n" }; $function->("carcassonne");
See perlreftut and perlref