[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Extracting list of items from line?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Mon, 18 Apr 2011 12:13:03 +0200
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?