X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse.pm;h=f585439e930bad06c29d85f3e719eb8cfc2dbc00;hp=279d58caabdd4d3c3904cbbe470c9ebefef00bd5;hb=1a8951d105e921ff1225439bc981b985ed1b1f4e;hpb=13756394019ebd1535c45fdca817887ce6a0b122 diff --git a/lib/Mouse.pm b/lib/Mouse.pm index 279d58c..f585439 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -404,15 +404,16 @@ keywords (such as L) it will break loudly instead breaking subtly. =head1 CAVEATS -If you use Mouse::XS you might see a silent fatal error when you use -callbacks which include C. This is not +If you use Mouse::XS you might see a fatal error on callbacks +which include C, which typically occurs in such code +as 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 MayNotBeInstalled'; # NG - eval{ eval 'use MayNotBeInstalled' }; # OK + # eval 'use NotInstalledModule'; # NG + eval{ eval 'use NotInstalledModule' }; # OK } It seems ridiculous, but it works as you expected.