Hello, I've started experimenting with the use of subroutines in place of large, repeating blocks of code in a few of my programs. Without exception, these subroutines require variables defined outside of the subroutine. Unless I'm mistaken, the only way to make these variables available within the subroutine is to define them as global variables using "our."
As I replace code (and, I'm sure, as I move forward with new tasks), this is going to involve a lot of finding the original variable declaration to change "my" to "our." Is there some way around this? What are the disadvantages to using "our" in a fairly widespread manner, to avoid having to waste time going back and making the substitutions. Thanks for any input. Regards, Owen