Roles by default will drop conflicting methods on the floor. However you can
optionally remap method names and or exclude method names.

If you were to remap thr validate methods then in you main class write a
single validate that called them that would be the cleanest solution.

On Apr 14, 2009 8:09 AM, "Piotr Roszatycki" <piotr.roszaty...@gmail.com>
wrote:

2009/4/14 Zbigniew Lukasiak <zzb...@gmail.com>:

> Ah - sorry I was not specific enough.  What I had in mind was more >
something similar to > > with...
You just described how roles work :)

You should place into your role something like:

around 'validate' => sub {
   my ($next, $self) = @_;
   # here your code
   return $self->$next();
};

"around" guarantees that you're roles won't conflict.

-- .''`. Piotr Roszatycki : :' : mailto:piotr.roszaty...@gmail.com `. `'
mailto:dex...@...

Reply via email to