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."$method"();
123
Is there a reasons for $o.call("method") not existing?
- Salve
--
#!/usr/bin/env perl
sub AUTOLOAD{$AUTOLOAD=~/.*::(\d+)/;seek(DATA,$1,0);print# Salve Joshua Nilsen
getc DATA}$"="'};&{'";@_=unpack("C*",unpack("u*",':50,$'.# <s...@foo.no>
'3!=0"59,6!`%%P\0!1)46%!F.Q`%01,`'."\n"));eval "&{'@_'}"; __END__ is near! :)