http://www.perlmonks.org?node_id=194778


in reply to Re: dispatch table of functions and arguments
in thread dispatch table of functions and arguments

YES i understand that. however, what would be really nice, is if I could build a dispatch table for the parameters as well, and then give a value to the params somewhere in my code and then use it whenever I please. don't know if I clear
  • Comment on Re: Re: dispatch table of functions and arguments

Replies are listed 'Best First'.
Re: Re: Re: dispatch table of functions and arguments
by Sihal (Pilgrim) on Sep 03, 2002 at 14:45 UTC
    fglock your solution still isn't quite like what I imagined : imaghine I have 3 parameters $toto, $titi, $tata.
    I'm inside a while(){} and I want to call some funcs of my dispatch table with either $toto, $titi, or $tata ( depending of the type of data i'm fed) but keeping in mind that the values of $titi, $toto, $tata change at every iteration (because of the data i'm fed) ..... is it possible?