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

Re: Strange behaviour with modules

by graff (Chancellor)
on Mar 06, 2014 at 22:52 UTC ( #1077297=note: print w/ replies, xml ) Need Help??


in reply to Strange behaviour with modules

I'm puzzled about what you're trying to show us. I don't see a module called "Utility" on CPAN, and (assuming it's something specific to your app) I don't see any snippet to show what the "Single_Input()" function does. Could the internals of that module be relevant to the problem?

I also don't see "use strict" in any of your snippets. If you're allowing all variables to be global by default, then it seems like you're working against the general logic of modules: that they be independent and self-contained with regard to variables.

Of course, if you do use strict in all your modules, then I gather that you would (should?) also be using our $USERID; where necessary, to make sure that this variable is actually shared across modules as needed (as opposed to being global by default, or "strictly" distinct in each module).


Comment on Re: Strange behaviour with modules
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-12-22 22:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls