use strict; *foo=sub{print "foo"}; foo(); #### *"${pack}::${name}"=\&fubar;