Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by HipDeep (Acolyte)
on Aug 10, 2016 at 19:15 UTC ( [id://1169518]=note: print w/replies, xml ) Need Help??


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

Ok, thanks hippo! I thought the version method was needed to stick with the "always access data through a method" principle, but if it's not, that's fine too.

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

Replies are listed 'Best First'.
Re^5: OO manner of accessing static variables in a subclass?
by Mr. Muskrat (Canon) on Aug 10, 2016 at 19:57 UTC

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

      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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-23 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found