Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Wierd dprofpp results.

by dug (Chaplain)
on Apr 12, 2002 at 18:45 UTC ( #158642=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2022-05-17 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?