This question got answered in #moose on IRC, but just so that Perlmonks has the answer, here you go.
The conflict is in the Moose export &with and the Error export &with. There are a couple of solutions possible:
package Foo::Role; use Moose::Role; package Foo; use Moose with => { -as => "moose_with" }; use Error qw(:try) moose_with("Foo::Role"); Foo->does("Foo::Role") # returns true
In reply to Re: Moose and exceptions
by stvn
in thread Moose and exceptions
by glide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |