http://www.perlmonks.org?node_id=1169521


in reply to Re^4: OO manner of accessing static variables in a subclass?
in thread OO manner of accessing static variables in a subclass?

You're not wanting the version of the object so you don't need a version method.

  • Comment on Re^5: OO manner of accessing static variables in a subclass?

Replies are listed 'Best First'.
Re^6: OO manner of accessing static variables in a subclass?
by choroba (Cardinal) on Aug 10, 2016 at 20:01 UTC
    There are class methods, too ("static" in Java parlance).

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

      Thank you Mr. Muskrat, that's the distinction I was missing!

      choroba, thanks for that info. Is that something that you have a reference for? If it's not something that I *need* to incorporate, I can keep that on the back burner for further educational purposes.