In both cases, you can just use the scalar holding the method name directly:
and$obj->$method(@arguments);
$class->$method(@arguments);
In reply to Re: Calling instance methods with the method name stored in a variable
by Corion
in thread Calling instance methods with the method name stored in a variable
by Cybris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |