Subject: | Name clashed with Error and Moose |
Using Moose and Error together in one package returns a warning because
both declare a function "with".
The following example code:
package Test;
use warnings;
use Moose;
use Error qw(:try);
returns:
Prototype mismatch: sub Test::with: none vs (&;$) at - line 5
Since I doubt you want to change your API (and even more doubt the
Moose guys want to change theirs) I assume at least a warning in the
documentation would help.
Versions:
Moose: 0.78
Error: 0.17015
perl: 5.10 on Linux