Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Difference between 'use' and 'require'

by ikegami (Patriarch)
on Dec 07, 2004 at 15:01 UTC ( #412914=note: print w/replies, xml ) Need Help??


in reply to Re: Difference between 'use' and 'require'
in thread Difference between 'use' and 'require'

use implicitly calls the import method of the module being loaded, require does not

That's optional. Adding empty parens (as in use Socket ();) prevents import from being called.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-08-17 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?