require is for modules (files with a package directive).
do is for modulesscripts (files without a package directive).
It might even fix your problem without further change, but I'm not sure.
In reply to Re: namespaces and variable initilization with require 'file'
by ikegami
in thread namespaces and variable initilization with require 'file'
by weltyj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |