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

Reply via email to