in reply to Storing/Calling References to Instance Methods

If the LHS of -> is always $web_services, you could do the following:
$md_config->{cust_num } = 'GetCustomerNumber'; $md_config->{description} = 'GetCustomerDescription'; my $field = 'cust_num'; my $meth = $md_config->{$field} or die("Unknown field $field\n"); $web_services->$meth();

Replies are listed 'Best First'.
Re^2: Storing/Calling References to Instance Methods
by mlong (Sexton) on Sep 20, 2007 at 16:41 UTC
    Now that's an interesting idea. I will give that a try.

    Thank you.

    -Matt