This is commonly called a "Role". It's usually implemented in Perl either by simply importing methods as if they were (well, they are) subroutines, or by multiple inheritance, with the hope that no bad diamond inheritance problems get created.
See Role::Tiny, Moo::Role, Algorithm::C3, and likely Role.
Most Perl modules also use a function/method/"keyword" named with for declaring such roles/mixins.
In reply to Re: "importing" methods?
by Corion
in thread "importing" methods?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |