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
In reply to Add a code to first and last line of all the subroutines in a perl package by arunvelusamy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |