title: What are the differences between doFile and require in Lua
body: <p>What are the differences between doFile and require in Lua, especially in Torch? When do you call one but not the other? When will one work but the other won't? (I'm using Lua 5.1, torch7).</p>