in reply to Re^2: global variables defined in an external file
in thread global variables defined in an external file
Exporting variables is not a good idea. They can change under the hood, provoking horrible effects at-a-distance, that are too hard to track and to fix. Trust me: they are not worth it.To provide the capability to set/get class-wide settings, it is best instead to provide accessors as subroutines or class methods instead.
"I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
-- Dr. Cox, Scrubs
|
|---|