The GLOBAL command causes a variable to be available regardless of scope. By default, a variable declared outside of a function is not available inside the function, unless it is defined as a GLOBAL
GLOBAL