in reply to Moose | How to identify subroutine inside an 'around' in case multiple subroutine share the same 'around'?
One of my colleague suggested me to use caller to get the subroutine name. I have tried that, it does gives the subroutine name at level '2'.
Even though it works, I am not very comfortable using it in code (Although its a Perl function but it looks like more of hack in code than a retrospection/Meta Data).
Any suggestions on using it?
|
---|