On Tue, May 23, 2017 at 9:09 PM, Elizabeth Mattijsen <l...@dijkmat.nl> wrote:
>
>> On 23 May 2017, at 20:01, Gabor Szabo <szab...@gmail.com> wrote:
>> given an object $o and the name of a method in $method = "run"
>> how can I invoke the $o.run() ?
>>
>> Something like $o.call($method)
>
> $o.”$method"()
>
> $ 6 'my $method = "Str"; dd 42."$method"()'
> “42"
>
> Liz


Funny, first I tried $o.$method()  but that did not work.


Thanks to both of you!
    Gabor

Reply via email to