Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: USE or Require?

by chromatic (Archbishop)
on Jul 23, 2003 at 03:01 UTC ( [id://277002]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: USE or Require?
in thread USE or Require?

Okay, that's a different question and worth more thought.

I don't have a problem importing things into my namespace for three reasons:

  • I keep my code fairly short, so I don't have to import many things.
  • I tend to import only the things I really want, so the use line explicitly says what I want.
  • When I bend my second point, I only do so with well-defined idioms, such as with the Test::* modules or something like File::Path.

I expect someone maintaining my code to be able to find the original location of functions I've imported. I try not to make it hard on that person, but I don't believe in writing un-idiomatic code because it's perceptually "self-documenting". Part of maintainability is readability and duplicate code hurts that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found