Module - Why doesn't this work?

File 1: main.lua

require “ourModule”;

print(variableFromModule);

File2: ourModule.lua

module(…, package.seeall);

variableFromModule = “variable placed on module”;

… it doesn’t print the variable from the module. I’m guessing it works differently to say including a file in php?

Thanks

Tom [import]uid: 55068 topic_id: 13290 reply_id: 313290[/import]

you need ourmodule = require(“ourmodule”) [import]uid: 7911 topic_id: 13290 reply_id: 48805[/import]