Thomas Bätzler <[email protected]> writes:

> Harry Putnam <[email protected]> asked:
> [...] 
>> which is also inside sub dispt {the sub function}.  Where does global
>> come in?
>
> Hint: $code->(@_);

Yes, I knew it could be done there... but what to do then when more
function calls are added.

Are you thinking something like:

   if(something){
      $code->(values)
   }elsif(something else){
      $code->(Other values)
   } [...]

It allow for additional calls in the dispatch table?


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to