note
dug
DProf seems to be lying.<br><br>
If in U.pm you replace:<br>
<code>
use T;
</code><br>
with:<br>
<code>
BEGIN { require T; warn "executing BEGIN\n"; }
</code><br>
you will only see the warning once, and dprofpp will still show 10002 calls to U::BEGIN.<br><br>
from perldoc <a href="http://www.perldoc.com/perl5.6/pod/perlmod.html">perlmod</a>:<br><br>
<i>use Module ();<br>
is exactly equivalent to<br>
BEGIN { require Module; }
</i><br><br>
Now, that said, I can't tell you <i>why</i> it's lying :)
<br><br>
dug
158615
158615