Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Accessing lexically scoped variables from a subref

by dragonchild (Archbishop)
on Dec 28, 2007 at 04:34 UTC ( #659296=note: print w/replies, xml ) Need Help??


in reply to Accessing lexically scoped variables from a subref

Generally, you want to really think long and hard before you violate the only (mostly and it's really hard) inviolable encapsulation that Perl provides. The better solution is fix what you're doing and provide proper accessors to those variables.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: Accessing lexically scoped variables from a subref

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2022-11-28 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?