![]() |
|
go ahead... be a heretic | |
PerlMonks |
Add a code to first and last line of all the subroutines in a perl packageby arunvelusamy (Monk) |
on Oct 23, 2007 at 05:13 UTC ( #646639=perlquestion: print w/replies, xml ) | Need Help?? |
arunvelusamy has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
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
Back to
Seekers of Perl Wisdom
|
|