"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I once had to maintain code which had many subs accessing a bunch of global states which where switched by calling an "init()" routine or passed flags. After long analysis (Freudian yes) I realized that these routines where effectively methods, the states where instance vars and the so called init() routine switched the instances. Well actually that was only a simplified description of what happened, I don't wanna give you nightmares. :)
Cheers Rolf
In reply to Re^3: Splitting program into modules
by LanX
|
|