in reply to Best practices with globals and subroutine arguments
I wouldn't say on Perlmonks I'd be using "global variables". Instead, I'd label those variables class instance variables, and call the class they're defined in a "singleton object". Then non of the "global variables are bad" triggers will fire; instead, people will think the world of you. But except for the labels, there's no difference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best practices with globals and subroutine arguments
by Anonymous Monk on Jun 07, 2010 at 09:01 UTC | |
by JavaFan (Canon) on Jun 07, 2010 at 10:04 UTC |