arunvelusamy has asked for the wisdom of the Perl Monks concerning the following question:
I have been working with a large perl code base. My requirement is to add a line to first and last line of every subroutine. ie., Lets say i want to print "Entering <subroutine-name>" to first line of every subroutine, and "Exiting <subroutine-name>" to every last line of subroutine (ofcourse, before the return statement).
How can i achieve this?
Thanks in advance,
arunvelusamy
|
|---|