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


in reply to Wierd dprofpp results.

DProf seems to be lying.

If in U.pm you replace:
use T;

with:
BEGIN { require T; warn "executing BEGIN\n"; }

you will only see the warning once, and dprofpp will still show 10002 calls to U::BEGIN.

from perldoc perlmod:

use Module ();
is exactly equivalent to
BEGIN { require Module; }


Now, that said, I can't tell you why it's lying :)

dug