lua-users home
lua-l archive

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


On 1 July 2012 00:43, Philippe Rathé <prathe@gmail.com> wrote:
> Interesting, I've just read on returning multiple values. So in order
> to get a string I'm doing:
>
>     table.concat({word:match('word')})

If you only want to write it out, you can also try:

    io.write(word:match('word'))

io.write does no fancy \t separators and end-of-line as the print function.