X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse.pm;h=b8b4565397fa210b8746a0987dc0be43e7340fc6;hb=3310ddf29da76ecf40333e91b0c855113943dab3;hp=41f6b0cd9811b98bc4e50ffec6c3845233081872;hpb=8c235ea79c109c704514acd56b10265220499d70;p=gitmo%2FMouse.git diff --git a/lib/Mouse.pm b/lib/Mouse.pm index 41f6b0c..b8b4565 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -402,6 +402,22 @@ You may use L to replace the superclass list. Please unimport Mouse (C) so that if someone calls one of the keywords (such as L) it will break loudly instead breaking subtly. +=head1 CAVEATS + +If you use Mouse::XS you might see a fatal error on callbacks +which include C, which typically occurs in sutch code +like C. This is not +a bug in Mouse. In fact, it is a bug in Perl (RT #69939). + +To work around this problem, surround C with C: + + sub callback { + # eval 'use NotInstalledModule'; # NG + eval{ eval 'use NotInstalledModule' }; # OK + } + +It seems ridiculous, but it works as you expected. + =head1 SOURCE CODE ACCESS We have a public git repository: