in reply to Re: Calling a hash member
in thread Calling a hash member
{ package ProjectA; { my $i; sub prepare { print ++$i, "\n"; } } } my $project = 'ProjectA'; my %ThingsToDo = (firstTask => \{$project->prepare}); $ThingsToDo{firstTask}; $ThingsToDo{firstTask};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Calling a hash member
by geekphilosopher (Friar) on Dec 14, 2006 at 01:46 UTC | |
by ikegami (Patriarch) on Dec 14, 2006 at 02:06 UTC | |
by geekphilosopher (Friar) on Dec 14, 2006 at 02:42 UTC | |
by ikegami (Patriarch) on Dec 14, 2006 at 03:58 UTC |