Hello Monks!
Can you please help me with this problem? I have a complex subroutine in a legacy Perl code. This subroutine has several "return"s in the body, and it is called in hundreds of places in the code. There is some issue in this subroutine and I want to add some logs to mark the end of the subroutine - when the function returns. Is there a way I can hook a code to execute just before the subroutine exits - without having to push something before each return or each invocation of the subroutine? - there are just tooo many of them!! Something like an END block for the subroutine?