in reply to anonymous sub, packages, global variables

What do you mean by "reattach"? If you want to make it so it can be called as func(), you can use

*func = $func;