lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I am using lua 5.1.5 with Gentoo Linux.

I tries to get a user input interactively and used:

    userin=os.read()

. The script does a 'require( "os" ) before.

There was an error message saying:

/usr/bin/lua: ./data.lua:154: attempt to call field 'read' (a nil value)

os.read of that form is mentioned in the book "Programmin in Lua, 2ed
edition".

I am sure, it is an level eight error, which usually occurs in places
in front of the monitor...but...

What is wrong there?

Thank you very much in advance for any help!
Best regards,
mcc