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

Re: USE or Require?

by Dog and Pony (Priest)
on Jul 23, 2003 at 03:57 UTC ( #277017=note: print w/replies, xml ) Need Help??


in reply to USE or Require?

I just dislike the namespace pollution that calling 'use' entails, such as not knowing exactly what functions it imports.

If the docs aren't enough, check the source. And if that isn't enough either, the call use with parameters, as in:

use CGI qw(:standard);
or for that matter,
use CGI ();
to import nothing. use is done at compiletime, and thus IMO is preferable in most cases. I only use require when I need to do conditional inclusion of something.


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://277017]
help
Chatterbox?
[Eily]: duck typing is when someone starts typing in python you have to duck, fast
[shmem]: trading perl for python is just like throwing away a big tool box, to be given a hammer, a gripper and a screwdriver instead
[choroba]: but they're shiny!
[shmem]: ...and, a plethora of tools built with hammer, gripper and screwdriver, I should say

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2018-04-20 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?