my %thingy; $thingy{foo} = sub { print "Cool!\n" }; $thingy{foo}(); [download]
In reply to Re^2: call subroutines via hash by Roy Johnson in thread call subroutines via hash by fortesque