Thanks for the reply.
I created 2 scripts as you said. I kept both the scripts in the same directory and executed the script in Interactive mode. I am getting an execption
"module 'myfuns.lua' not found:
no field package.preload['myfuns']
no file '.\myfuns.lua'
no file 'C:\Program Files (x86)\Lua\5.1\lua\myfuns.lua'
no file 'C:\Program Files (x86)\Lua\5.1\lua\myfuns\init.lua'
no file 'C:\Program Files (x86)\Lua\5.1\myfuns.lua'
no file 'C:\Program Files (x86)\Lua\5.1\myfuns\init.lua'
no file 'C:\Program Files (x86)\Lua\5.1\lua\myfuns.luac'
no file '.\myfuns.dll'
no file '.\myfuns51.dll'
no file 'C:\Program Files (x86)\Lua\5.1\myfuns.dll'". Please give me suggestion