Spliting the statement into two is definitely the way to go.
my $method = $ThingsToDo{firstTask}; $project->$method();
The trick used to interpolate function call results into a string also works here, but like in string literals, it's poorly readable.
$project->${\$ThingsToDo{firstTask}}();
In reply to Re: Calling a hash member
by ikegami
in thread Calling a hash member
by carcassonne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |