Posted on 2008-11-03 21:03:23-08 by bugmenot in response to 8536
Re: Moose can't seem to coexist with Error.pm
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"; }

with (no pun intended):

Prototype mismatch: sub test::with (&;$) vs none at lib/Sub/Exporter.pm line 896

so the "with"-methods seem to collide.

Direct Responses: 11373 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.