in reply to •Re: Re: •Re: Detecting function vs method in an AUTOLOAD?
in thread Detecting function vs method in an AUTOLOAD?
Even today, in Perl5, I'd write that as
$object->$meth($arg1,$arg2);
but it's clear that one or the other should be there, and not something ugly like
or, assuming that can returned a bound method,apply($object,$method,$arg1,$arg2);
my $meth_ref = $object->can($method); apply($meth_ref,$arg1,$arg2);
|
|---|