1. Shlomi Fish
  2. perl-Error.pm

Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed bdd2bfc

Add note about Moose compatbility.

  • Participants
  • Parent commits ca14988
  • Branches default

Comments (0)

Files changed (2)

File module/ChangeLog

View file
  • Ignore whitespace
+
+  - Mentioned the lack of compatibility of "use Error qw(:try)" with Moose.
+    Fixed: https://rt.cpan.org/Ticket/Display.html?id=46364
+
+
 Jul 19 2008 <shlomif@iglu.org.il> (Shlomi Fish)
 
   Error.pm #0.17015

File module/lib/Error.pm

View file
  • Ignore whitespace
 
 =back
 
+=head1 COMPATIBILITY
+
+L<Moose> exports a keyword called C<with> which clashes with Error's. This
+example returns a prototype mismatch error:
+
+    package MyTest;
+
+    use warnings;
+    use Moose;
+    use Error qw(:try);
+
+(Thanks to C<maik.hentsche@amd.com> for the report.).
+
 =head1 CLASS INTERFACE
 
 =head2 CONSTRUCTORS