in reply to Why is 'require' not working as I expect?
a) module A uses module B before it does the require (in this case the function becomes loaded into B's namespace) or
b) module A requires the file before using module B (and in this case the function becomes loaded into A's namespace).
-M
Free your mind
|
|---|