lua-users home
lua-l archive

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



On 4-Aug-04, at 10:29 AM, Andreas Falkenhahn wrote:

Kind of. I'm trying to replace the old script language in my program
with Lua and want to keep up compatibility as good as it's possible.
And my old script language does array allocation in the

newarray(test, 100)

way :-)

find . -name '*.oldscript' | \
  xargs perl -pi.bak -le 's/newarray\s*\(\s*([^,]*),\s*/\1 = newarray(/'