Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Imported subroutines

by GrandFather (Sage)
on Sep 18, 2013 at 03:31 UTC ( #1054581=note: print w/replies, xml ) Need Help??


in reply to Re: Imported subroutines
in thread Imported subroutines

I almost never export anything from modules I write. I almost always:

use Wibble qw();

when I use modules. I means I have to:

Wibble::Wobble();

when I need to call Wobble(), but at least I know where Wobble() lives that way even minutes, or months, after I wrote the code.

Using OO largely avoids the name space pollution problem that these measures seek to avoid without cluttering the code with explicit name space references.

True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054581]
help
Chatterbox?
[marto]: it makes things less stressful for the parents that's for sure :P
[Corion]: Yeah (although their mother was somewhat stressed out regardless) - but it made for an otherwise relaxed evening ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-12-08 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (139 votes). Check out past polls.