http://www.perlmonks.org?node_id=797705


in reply to Re^3: symbolic reference + inheritance
in thread symbolic reference + inheritance

Sure. You can do either of:
my $meth = $pack->can("${method}2"); $pack->$meth(@args);
or more simply, if you can give the object twice:
$pack->can("${method}2")->($pack, @args);

-- Randal L. Schwartz, Perl hacker

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.