I noticed that some subs were used over an over and some variables were most naturally implemented as global variables
Generally, I would advise you to minimize the use of global variables and especially to avoid keeping state in global variables.
Is it feasible to refactor your code into cohesive modules (with each module having unit tests) and write short, easy to understand mainline scripts that call these modules?
👁️🍾👍🦟
In reply to Re: Common subs and Global Variables
by eyepopslikeamosquito
in thread Common subs and Global Variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |