sub foo { ... } ... *foo = sub { ... }; # install new version of sub foo