more useful options | |
PerlMonks |
Delegating to a role in Mooseby nysus (Parson) |
on Jan 12, 2018 at 08:42 UTC ( [id://1207142]=perlquestion: print w/replies, xml ) | Need Help?? |
nysus has asked for the wisdom of the Perl Monks concerning the following question: I have this code, which works, that allows me to access some custom methods in a role I created. For example:
I'm trying to get the above to work following the documentation for Moose delegation which states the following:
So I tried modifying the attribute line in the Server code like so:
However, this just results in an error:
Other attempts to get this working resulted in failure as well. What am I missing?
$PM = "Perl Monk's";
Back to
Seekers of Perl Wisdom
|
|