Perl: the Markov chain saw | |
PerlMonks |
Re: dispatch table of functions and argumentsby fglock (Vicar) |
on Sep 03, 2002 at 13:16 UTC ( [id://194757]=note: print w/replies, xml ) | Need Help?? |
update: How to set a parameter: $func{Click2}{param} = [ 1, 2, "hello" ];How to call a function: &{ $func{Click2}{func} } ( @{$func{Click2}{param}} );update: corrected @{} in func call
There are many more ways to do it. Also:
Or:
In Section
Seekers of Perl Wisdom
|
|