Windows script host languages
Posted: Thu Jan 12, 2012 11:39 pm
I have a question about adding languages to the wsh so that rev can use them as alternatelanguages.
I have activeperl installed and recognized by livecode as an alternate language (python too, but it has issues) I can't figure out how to get a result back out!
With vbscript something like
do "result = 1+1" as "vbscript"
works fine.
With perl, nothing i've tried will work.
do "$result=1+1;" as "perlscript"
do "return 1+1;" as "perlscript"
all fail to return the value 2.
No errors, it seems to actually execute correctly. Anyone know how to get a result back out when "doing" as "perlscript" ?
The python engine won't fire at all and spawns a windows error message, so its otu for now. May try with ruby just to see whats up.
I have activeperl installed and recognized by livecode as an alternate language (python too, but it has issues) I can't figure out how to get a result back out!
With vbscript something like
do "result = 1+1" as "vbscript"
works fine.
With perl, nothing i've tried will work.
do "$result=1+1;" as "perlscript"
do "return 1+1;" as "perlscript"
all fail to return the value 2.
No errors, it seems to actually execute correctly. Anyone know how to get a result back out when "doing" as "perlscript" ?
The python engine won't fire at all and spawns a windows error message, so its otu for now. May try with ruby just to see whats up.