X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FDevel%2FDProf%2FDProf.pm;h=95fcfc253de3115b2f180b31a36eef4cb5d82c13;hb=7619c85e4dd9a96a05fc0fc72ace9eb2b9f1bc6f;hp=15fc93a34b417fa7598bc27b76fec3f9f4363116;hpb=a7433df8ff37a7cd2fbb0f3ac8f0c0cc2aa71114;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Devel/DProf/DProf.pm b/ext/Devel/DProf/DProf.pm index 15fc93a..95fcfc2 100644 --- a/ext/Devel/DProf/DProf.pm +++ b/ext/Devel/DProf/DProf.pm @@ -154,6 +154,24 @@ from this subroutine. Note that the first assignment above does not change the numeric slot (it will I it as invalid, but will not write over it). +Another problem is that if a subroutine exits using goto(LABEL), +last(LABEL) or next(LABEL) then perl may crash or Devel::DProf will die +with the error: + + panic: Devel::DProf inconsistent subroutine return + +For example, this code will break under Devel::DProf: + + sub foo { + last FOO; + } + FOO: { + foo(); + } + +A pattern like this is used by Test::More's skip() function, for +example. See L for more details. + Mail bug reports and feature requests to the perl5-porters mailing list at Fperl5-porters@perl.orgE>.