in reply to Re^3: symbolic reference + inheritance
in thread symbolic reference + inheritance
Sure. You can do either of:
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.
|
---|
In Section
Seekers of Perl Wisdom