undef &{ 'foo::bar' }; no strict 'refs'; *{ 'foo::bar' } = sub {};