in reply to Re: Variable scoping problem
in thread Variable scoping problem

use do instead of require

Yes, but do requires additional error checking to make sure it actually worked (the docs show one example, that could be simplified a bit).

Replies are listed 'Best First'.
Re^3: Variable scoping problem
by kwatts59 (Novice) on Dec 04, 2019 at 14:45 UTC
    Thank you. I replaced "require" with "do" and the program now works.