in reply to Re: Calling a hash member
in thread Calling a hash member
That should probably have been:
use ProjectA; my $project = 'ProjectA'; my %ThingsToDo = (firstTask => sub { $project->prepare }); $ThingsToDo{firstTask}->();
|
---|
In Section
Seekers of Perl Wisdom