Moose - Re: Moose can't seem to coexist with Error.pm

Posted on Mon Nov 3 23:03:23 2008 by bugmenot in response to 8536 (See the whole thread of 3)
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.

Write a response