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

Re: How to make Common Variables defined in Module available to Scripts

by sh1tn (Priest)
on Dec 06, 2007 at 16:03 UTC ( #655440=note: print w/replies, xml ) Need Help??


in reply to How to make Common Variables defined in Module available to Scripts

Some languages allow access to class, object and even class level instance variables, but IMHO the best way is to use class methods (getters/accessors) for getting variables if they are not object attributes. And if they are, use instance accessor methods.

Class::MethodMaker, Class::BuildMethods.


  • Comment on Re: How to make Common Variables defined in Module available to Scripts

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655440]
help
Chatterbox?
[TCLion]: Ok I have used SoPW, any feedback would be appreciated
[Eily]: yes, but if you have to borrow it please don't leave any parselmouth stains on it!
[TCLion]: was wondering why is the code window so small for SoPW?
[LanX]: qu'est-ce que c'est?
[LanX]: oh millennial folklore. ..

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2017-03-23 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.