Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
getting subroutine namesby linuxfan (Beadle) |
on Jan 13, 2005 at 01:37 UTC ( [id://421838]=perlquestion: print w/replies, xml ) | Need Help?? |
linuxfan has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have an array with 20 subrefs. I go through each element of the arrray and execute the subroutine. Sometimes, I have to remove a few subrefs from the array and run my program. As a result, I find it hard to trace the name of the subroutine currently running. My code looks like: As you can see, each time I change the elements of the array, the test # printed on STDERR is different from the subroutine that is actually running. Is there a way I can obtain the name of the subroutine currently running? (like test1, test2 etc.). Thanks!
Back to
Seekers of Perl Wisdom
|
|