prepend foo => sub { # Remove the invocant. shift; }; sub foo { print shift; } #### sub foo { { # Remove the invocant. shift; } print shift; }