Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Using a module more than once

by cowboy (Friar)
on Aug 02, 2005 at 21:04 UTC ( [id://480297]=note: print w/replies, xml ) Need Help??


in reply to Using a module more than once

I think everyone else has covered the use vs require.

One benefit to them adding use statements is in an environment such as mod_perl or another environment where alot of processes are forked from a parent. In this case, if you load the modules in the parent process process, the memory can be shared among the children using the OS's copy-on-write abilities.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found