Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Hiding the Module 'Path'

by wog (Curate)
on Jan 26, 2002 at 08:12 UTC ( #141724=note: print w/ replies, xml ) Need Help??


in reply to Hiding the Module 'Path'

I would say this is not good. Not only is there the namespace conflicts issue you mentioned, but there is also an issue of how use works. use MODULE; is equivilent to BEGIN { require MODULE; MODULE->import(); }. This shortcut makes it so use will not be able to run the import method on the module in question, which can greatly affect how a module works. (I am, of course, assuming that these modules being "short-cutted" are really define packages whose name begins with SnortSnarf:: or whatever.)


Comment on Re: Hiding the Module 'Path'
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-01-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (228 votes), past polls