Sihal has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I'm trying to build a dispatch table wich looks like this:
My question being: I want to pass very different args to each of these subs. I wonder If there is a really clean way to do it. Thanx a lot!my %function_to_compute_taste_value = { ClickInterval => \&compute_interval , ClickInterstice => \&compute_interstice , EffInactivity => \&compute_inact_and_expo_effective , Exposure => \&get_exposure_service } ;
edited: Tue Sep 3 13:09:41 2002 by jeffa - code tags and spacing
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: dispatch table of functions and arguments
by fglock (Vicar) on Sep 03, 2002 at 13:16 UTC | |
(jeffa) Re: dispatch table of functions and arguments
by jeffa (Bishop) on Sep 03, 2002 at 13:31 UTC | |
Re: dispatch table of functions and arguments
by bronto (Priest) on Sep 03, 2002 at 13:43 UTC | |
by Sihal (Pilgrim) on Sep 03, 2002 at 14:26 UTC | |
by Sihal (Pilgrim) on Sep 03, 2002 at 14:45 UTC | |
by Sihal (Pilgrim) on Sep 03, 2002 at 14:20 UTC | |
by Sihal (Pilgrim) on Sep 03, 2002 at 15:07 UTC | |
Re: dispatch table of functions and arguments
by oylee (Pilgrim) on Sep 03, 2002 at 16:44 UTC |
Back to
Seekers of Perl Wisdom