use strict; my $subref = \&{'dynamic'}; &$subref(); sub dynamic { print "Mmm, dynamic.\n"; } #### $bar = \&{'foo'}; &$bar;