Posted on 2008-08-11 14:23:23-07 by maqsoum
Moose can't seem to coexist with Error.pm

use Error qw(:try);
use MyExceptionClassDescendentOfErrorSimple;
use Moose;

try {
_CallMethod();
}
catch MyExceptionClassDescendentOfErrorSimple with {
my $ex = shift;
print "ex";
}

This will not compile, if I remove 'use Moose', it works fine. Has anyone used moose with exception another exception handling module ? If moose is a complete object system, it ought to allow the use of an exception mecganism !
Direct Responses: 8536 | 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.