Removing a role
[email protected] (ynon perek)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CAJ9Vtg8B_6_2dEGQPN4PY6FLUapo3U2Co70Txi8yr-P_pSZHEw@mail.gmail.com> |
Hello All, I know that we can add a role to an instance by using apply_all_roles (or the meta). Is it also possible to remove a role from an instance ? What I want to do is something in the line of: my $badguy = Zombie->new; $badguy->eat_brain(); apply_all_roles($badguy, 'Strong'); # some time pass remove_role($badguy, 'Strong'); Thanks In Advance, Ynon