in reply to Moose and exceptions
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose and exceptions
by glide (Pilgrim) on Mar 20, 2008 at 11:54 UTC | |
by stvn (Monsignor) on Mar 20, 2008 at 16:27 UTC |