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