In the following code, the name of the method to be called is calculated at run time:
This works. Is it possible to do the same without using an auxiliary variable, $method?my $object=MyObj->new(); .... my $method=method_name(...); $object->$method();
In reply to Syntax question: Method call, where method name is calculated from an expression by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |