I guess this is why I have become more and more a fan of truly functional programming, especially for the lack of side effects. I try very hard to avoid all "action at a distance" coding
Explicitly I try to write code
Package Some::Module; ... my $some_state = 'something'; ... sub some_func { ... $some_state = 'new state'; ... }
I have found this approach has made my code much better structured, much less complex, more flexible and more reusable.
...it is better to be approximately right than precisely wrong. - Warren Buffet
In reply to Re: Passing globals and magic variables safely
by leriksen
in thread Passing globals and magic variables safely
by ysth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |