Think about Loose Coupling | |
PerlMonks |
Re^3: Is modifying the symbol table to redefine subroutines evil?by ikegami (Patriarch) |
on Apr 12, 2007 at 01:42 UTC ( [id://609540]=note: print w/replies, xml ) | Need Help?? |
Actually, there's no reason for it to be a package variable. I would have used a lexical. And bah! If someone shoots themselves in the foot by messing with internal state variables, it's their own foot. It's not like someone could accidently change the value of the variable.
In Section
Seekers of Perl Wisdom
|
|