Printing out the code of an anonymous subroutine

前端 未结 4 1919
挽巷
挽巷 2021-02-05 12:56

I\'m currently working in a very complex Perl architecture, and I want to create some debugging tools. Since a lot of the behavior involves anonymous subroutines, I\'d like to a

4条回答
  •  猫巷女王i
    2021-02-05 13:30

    For this sort of thing, I always refer to Track the filename/line number of an anonymous coderef on PerlMonks. Randal had an idea to tag anonymous subroutines so you could see where you defined them, and I extended it a bit. It uses some of the same stuff that Eric posted, but with a little more.

提交回复
热议问题