lua-users home
lua-l archive

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


On Mon, 18 Apr 2011 12:01:26 +0200, steve donovan
<steve.j.donovan@gmail.com> wrote:
>Ah, that's Lua 4 code - replace 'strfind' with 'string.find'

Makes sense. I ended up using split() ("Function: Split a string with
a pattern, Take Two") since it says it's compatible with 5.1, but I
get the following error on that line:
=========
libs = split(libs,",")
-- "attempt to call a table value"
for lib in libs do print(lib) end
=========

split() returns a table, so it looks like Lua expects a different
syntax when reading from a table?