[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua string
- From: "Jérôme Vuarand" <jerome.vuarand@...>
- Date: Sun, 13 May 2007 20:53:15 -0400
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!