![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Wierd dprofpp results.by dreadpiratepeter (Priest) |
on Apr 12, 2002 at 15:54 UTC ( #158615=perlquestion: print w/replies, xml ) | Need Help?? |
dreadpiratepeter has asked for the wisdom of the Perl Monks concerning the following question:
I have been getting wierd results from dprofpp involving BEGIN blocks. I get an inordinately high number of call to BEGIN and I don't understand why. I have distilled the problem down to a simple example:
file 1 (T.pm):
file2 (U.pm):
file 3 (t.pl):
When I run t.pl with perl -d:DProf t.pl and then run it though dprofpp tmon.out I get the following results:
It appears that I get a BEGIN call in U every time I call a method in T. That doesn't sound right. I also changed the example to use straight function calls instead of class methods and I get the same results. Can anyone familiar with the internals elighten this poor friar? -pete "I am Jack's utter lack of disbelief"
Back to
Seekers of Perl Wisdom
|
|