in reply to Re^3: symbolic reference + inheritance
in thread symbolic reference + inheritance
or more simply, if you can give the object twice:my $meth = $pack->can("${method}2"); $pack->$meth(@args);
$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.
|
|---|