lua-users home
lua-l archive

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

2007/5/13, Aljaz <>:
I want to use functions with lua scripts like string.len, string.rep, etc..
What do I have to include/set to be able to do this?

Nothing, the string module is already included and loaded in the
default lua interpreter.

~$ lua
Lua 5.1.1  Copyright (C) 1994-2006, PUC-Rio
str = "Hello World!"
= string.len(str)
= "Kawa"..string.rep("i", 12).."!"