Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: Unclear about 'our'by ibm1620 (Hermit) |
on Dec 28, 2022 at 17:45 UTC ( [id://11149170]=note: print w/replies, xml ) | Need Help?? |
I think it's fair to say that, in object-oriented design, the fields/attributes/properties/member variables of a class are a common pool of variables shared by subroutines/methods. In fact, I've come to think of these as "globals with discipline", which is generally my thinking when I declare the variables I mentioned. However, as HaukeX suggested, it might be time to learn to write OO Perl. :-)
In Section
Seekers of Perl Wisdom
|
|