Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: dispatch table of functions and arguments

by fglock (Vicar)
on Sep 03, 2002 at 13:16 UTC ( #194757=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %func = {
        Click => {
            func => \&compute,
    ...
            func => \&compute2,
            param => [ @param2 ] },
    };
    
  2. or download this
    ----------
    
  3. or download this
    ----------
    
  4. or download this
        ...
        Click => {
            func => \&compute,
            param => \@param },
        ...
    
  5. or download this
        ...
        Click => [ \&compute, \@param ],
        ...