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