2

I need some basic string operations, like sub-string, find string in string etc. I found a documentation of some standard functions for that: http://www.lua.org/manual/2.4/node22.html

But when I try it, I get an error:

input:29: attempt to call a nil value (global 'strfind')

Do I have to use require? Or are those methods contained in some object?

1
  • 2
    That link is about very old Lua version. See here for modern Lua. Commented Mar 5, 2016 at 21:21

1 Answer 1

2

The link you posted is for Lua version 2.4. The latest version as of this post is Lua version 5.3. Make sure you are viewing the documentation for the version of Lua that you are using.

Lua 5.3 Reference

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.