> On 23 May 2017, at 20:23, Salve J Nilsen wrote:
>
> Patrick R. Michaud said:
>> On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo 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)
>>
Patrick R. Michaud said:
On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo 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)
At one point it was done as $o."$method"() .
my $method = 'say'; 123."$meth
> Funny, first I tried $o.$method() but that did not work. That is syntax for
> when you have a method object or other kind of
routine stored in your $method variable
On Tue, May 23, 2017 at 9:09 PM, Elizabeth Mattijsen wrote:
>
>> On 23 May 2017, at 20:01, Gabor Szabo 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";
On Tue, May 23, 2017 at 09:01:54PM +0300, Gabor Szabo 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)
At one point it was done as $o."$method"() .
> my $method = 'say'; 123."$method"();
123
Pm
> On 23 May 2017, at 20:01, Gabor Szabo 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
Hi,
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)
Gabor