"be consistent" | |
PerlMonks |
Re: How to make Common Variables defined in Module available to Scriptsby sh1tn (Priest) |
on Dec 06, 2007 at 16:03 UTC ( [id://655440]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|