in reply to Access functions by name

If all of the functions are sure, you may call the functions by names in this way:
my %func_map={ "function1" => \&function1, "function2" => \&function2, # ..... }; # while you got a name, call the corresponding function my $name=some_way_you_got_it(); &{$func_map{$name}}($your_param1,$your_param2);