[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] But I'm *not* kidding



At 17.51 1998.02.07, Dennis P. Geller wrote:
>SInce there's no exec statement, is there some other way in MacPerl to
>implement a subroutine transfer table:
>@Actions = ('$x', '$y');
># ... stuff giving a value to $i
># Call the subroutine
>exec $Actions[$i]

I am not sure what you mean.  Would $Actions[$i] be a code reference, i.e.
$x = sub {some_code_here} ?  Why is $x in single quotes?  What is it that
you are trying to do here?

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch