Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: use vs. require in string eval?

by Wonko the sane (Deacon)
on Mar 11, 2004 at 22:15 UTC ( #335995=note: print w/ replies, xml ) Need Help??


in reply to use vs. require in string eval?

Hello,

I think something else is going on there, if you are getting benchmarks that are that different,
with these two statements. Require and use should take up about the same amount of time,
and they do "essentially" the same thing. The main difference being of course that require's are done at runtime,
while use's are done at compile time.
Unless of course you have them wrapped in an eval, which would cause them both to be done at runtime.

Wonko


Comment on Re: use vs. require in string eval?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-11-27 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (186 votes), past polls