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

Re: Qualified module variables and arrays

by Laurent_R (Canon)
on Sep 18, 2014 at 06:21 UTC ( [id://1100995]=note: print w/replies, xml ) Need Help??


in reply to Qualified module variables and arrays

I think that using qualified variable name should be done very rarely, only for very specific cases. What you usually want to do with a module is to have the mudule functions to receive the arguments neccessary for its processing and returning the values expected by the caller. This is much cleaner than sharing values or using global variables, because the module function becomes a blackbox that you don't have to worry about any longer: it receives some arguments and returns somez expected values, you don't have to worry about how it works, or whether some other variable or environment needs to be set beforehand.
  • Comment on Re: Qualified module variables and arrays

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-24 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found