Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: How to access a variable inside subroutine?

by Anonymous Monk
on Sep 06, 2020 at 22:37 UTC ( #11121421=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to access a variable inside subroutine?
in thread How to access a variable inside subroutine?

Generically speaking, "getters and setters" are any routine that you can (must ...) call to affect a value that you can't access directly because it is inside of a closure or an object. In the general sense, they often have "side effects." For instance, calling a "color setter" actually causes the color of something to change, and also completely conceals the mechanics of how that actually happens.
  • Comment on Re^4: How to access a variable inside subroutine?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2020-10-20 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?