|
Moose doesn't export to main - so that example works. This fails:
package test;
use strict;
use warnings;
use Error qw(:try);
use Moose;
try {
throw Error::Simple ("Whoops");
}
catch Error::Simple with {
my $ex = shift;
print "$ex";
}
Prototype mismatch: sub test::with (&;$) vs none at lib/Sub/Exporter.pm line 896
so the "with"-methods seem to collide.
|