![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Global Varsby tbone1 (Monsignor) |
on Sep 04, 2009 at 13:57 UTC ( #793461=note: print w/replies, xml ) | Need Help?? |
What he said. I have sometimes created a global hash (called something like %my_global_values or something like that) so that 1) it's obvious what is a global variable, and 2) I'm far less likely to accidentally reuse a variable. And the quick and dirty programs probably last longer because expectations are lower, they're for (relatively) simple things, and developers are less likely to overthink them.
--
In Section
Seekers of Perl Wisdom
|
|