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:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?