lua-users home
lua-l archive

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


Hi,

If you are using Lua 4.1 work3 and don't care much about 
error-checking, you can use this function:

    function FullLookup2(table, str)
        gsub(str .. ".", "(.-)%.", function(index)
            table = table[index]
        end)
        return table
    end

and call it Josh's FullLookup.

Regards,
Diego.