X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse.pm;h=c3991574392752620860acb8dd07b5fa85242d98;hb=d39ac61c301d8857e33e6077252e461654d8a37f;hp=279d58caabdd4d3c3904cbbe470c9ebefef00bd5;hpb=13756394019ebd1535c45fdca817887ce6a0b122;p=gitmo%2FMouse.git diff --git a/lib/Mouse.pm b/lib/Mouse.pm index 279d58c..c399157 100644 --- a/lib/Mouse.pm +++ b/lib/Mouse.pm @@ -3,7 +3,7 @@ use 5.006_002; use Mouse::Exporter; # enables strict and warnings -our $VERSION = '0.46'; +our $VERSION = '0.48'; use Carp qw(confess); use Scalar::Util qw(blessed); @@ -166,7 +166,7 @@ Mouse - Moose minus the antlers =head1 VERSION -This document describes Mouse version 0.46 +This document describes Mouse version 0.48 =head1 SYNOPSIS @@ -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.