I have an object of an unknown class and I want to invoke a method of which I will know the name only at execution time.
I can test if the object contains this method with
if ( $obj->can( $method ) ) { # now I want to invoke $method on $obj
How?
Thanks for any hints
Regards Thedi gerber@id.ethz.chIn reply to Invoke a method on an object by thedi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |