http://qs321.pair.com?node_id=102513


in reply to Why does Devel::DProf report so much time in BEGIN?

Without seeing your code, but having spent some time with Devel::DProf myself, I will guess that you are use'ing a number of modules.

If I remember correctly,

use foo;
is implemented as
BEGIN { require foo; import foo; }
So, even though you are not explicitly using BEGIN blocks, you are using them implicitly through any use statements.

I would delve into the correct manpages and verify my memory, but I am far from any machine with perl installed on it :( And I have no ssh to get to a machine I could so use.

mikfire