in reply to How to pass a variable to function selected from a hash

By the way, as an alternative to &{$subref}(@args), you might like this syntax:
$subref->(@args); # or, for a subref in a hash: $hash{key}->(@args); # in 5.6, you can even leave out the -> if you want: $hash{key}(@args);