On Tue, 3 Jul 2001, Pozsar Balazs wrote:
> I would want to use a hash to keep pointers to functions, and then call
> them, but i'm stuck.
> So:
>
> I create:
> my %funcs=(
> "one"=> \&first,
> "two"=> \&second);
>
> Then how can I call 'first'? Obviously, using %funcs, i mean :).
$funcs{one}->();
$funcs{two}->();
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
An investment in knowledge always pays the best interest.
-- Benjamin Franklin
- pointers to subs? Pozsar Balazs
- Re: pointers to subs? Jeff 'japhy' Pinyan
- RE: pointers to subs? Brett W. McCoy
- RE: pointers to subs? John Edwards
- RE: pointers to subs? Jeff 'japhy' Pinyan
- RE: pointers to subs? Pozsar Balazs
- RE: pointers to subs? Jeff 'japhy' Pinyan
- quotation marks Pozsar Balazs
- Re: quotation marks Paul
- Re: quotation marks Jeff 'japhy' Pinyan
- Re: quotation marks Paul
- Re: quotation marks Jeff 'japhy' Pinyan
- RE: pointers to subs? Pozsar Balazs
