mlong has asked for the wisdom of the Perl Monks concerning the following question:
$web_services is the object instance. The syntax seems acceptable to perl, but when I go to get the method later to run it like this:$md_config->{"[cust_num]"} = \&{$web_services->GetCustomerNumber}; $md_config->{"[description]"} = \&{$web_services->GetCustomerDescripti +on};
It comes back with the error: "Undefined subroutine &MDScriptConfig:cust29435 called at MDScriptConfig.pm line 20."$this->{md_config}->{"cust_num"}->();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Storing/Calling References to Instance Methods
by merlyn (Sage) on Sep 20, 2007 at 16:13 UTC | |
by mlong (Sexton) on Sep 20, 2007 at 16:38 UTC | |
by ikegami (Patriarch) on Sep 20, 2007 at 16:40 UTC | |
|
Re: Storing/Calling References to Instance Methods
by ikegami (Patriarch) on Sep 20, 2007 at 16:33 UTC | |
by mlong (Sexton) on Sep 20, 2007 at 16:41 UTC |