Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Using a module more than once

by davidrw (Prior)
on Aug 02, 2005 at 15:31 UTC ( [id://480232]=note: print w/replies, xml ) Need Help??


in reply to Using a module more than once

Also, will any problems (or benefits) arise from developers adding "use" statements for the same CPAN modules in their own programs?

I've tried a SuperSearch with no luck, just to head that off.
No, it's fine -- they only get included once. perldoc -f use says that use Module LIST is exactly equivalent to BEGIN { require Module; import Module LIST; } and perldoc -f require says that 'the file will not be included twice under the same specified name'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-20 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found