lua-users home
lua-l archive

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


2007/5/13, Aljaz <aljaz.fajmut@siol.net>:
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 Lua.org, PUC-Rio
str = "Hello World!"
= string.len(str)
12
= "Kawa"..string.rep("i", 12).."!"
Kawaiiiiiiiiiiii!