# New Ticket Created by  Sam S. 
# Please include the string:  [perl #129801]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129801 >


I tried to time a subroutine as follows:

    ➜  sub a { LEAVE say now - ENTER now;  sleep 1 };
    ➜  a
    ===SORRY!===
    Cannot reference undeclared local 'enter_result__1

Not sure if nesting phasers like this would be reasonable to support,
but even if not, the error message should explain what's going on in
user-friendly terms and not leak an internal variable name.

Reply via email to