[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Writing "raw" strings in Lua
- From: "Pedro Miller Rabinovitch" <miller@...>
- Date: Fri, 2 Jan 1998 06:09:00 +0000
> What is this [] stuff?
> I don't remember reading about it in the manual.
If Lua encounters a [[ while parsing through commands, it enters
"string mode" and reads anything it finds as string characters until
it reaches a ]]. That way, you can write things such as
write( [[ This is in one line
and this is in another. ]] )
function Test ()
print( "It works!" )
Very nice for writing out HTML in CGI-Lua.
Pedro Miller Rabinovitch
The art of acting consists in keeping people from coughing.
Sir Ralph Richardson