{ package ProjectA; { my $i; sub prepare { print ++$i, "\n"; } } } my $project = 'ProjectA'; my %ThingsToDo = (firstTask => \{$project->prepare}); $ThingsToDo{firstTask}; $ThingsToDo{firstTask};
In reply to Re^2: Calling a hash member
by ikegami
in thread Calling a hash member
by carcassonne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |