Fixed @Lua does not behave as documented

Jan 19, 2011
614
15
Norman, OK
@mikea Check to make sure you have PerlScript installed as per the documentation. I don't have it installed and got the same error.
 
Dec 7, 2009
238
2
Left Coast, USA
Ah, so this relies on PerlScript, eh? I have never installed it. I'd always thought this kind of problem with Perl pertained to some weirdness with ActiveState's Perl (which is the only version I've used).
 
Jan 19, 2011
614
15
Norman, OK
Now I get this
Code:
[C:\BIN\JPSoft\TCMD20] 11:04:16 $ echo %@lua[print 'foo']
foo
ECHO is OFF

[C:\BIN\JPSoft\TCMD20] 11:04:27 $ %@lua[print 'foo']
foo
 
May 20, 2008
12,175
133
Syracuse, NY, USA
Echoing the result of @LUA is kind of pointless, as it will always return 0 unless there's an internal Lua error, in which case you'll get an error message and the ECHO will never be executed.
That doesn't agree with what JQS observed. Why wasn't "0" echoed in his first example? And I would have expected
Code:
TCC: Unknown command "0"
from his second example.
 

Similar threads