Hi,
I'm struggling with a rather elementary syntax error. I'm trying to
translate into PicoLisp the equivalence of this bash script:
while read LINE
do
echo "Hello $LINE!"
done
... or this Ruby script:
STDOUT.sync = true
while 1
line = STDIN.readline.strip
puts "Hello #{line}!"
end
... but when I try to run this PicoLisp (greeter.l) code ...
(while T
(let L (line)
(prinl "Hello " (pack (trim L) "!") ) ) )
... I get this:
/greeter.l: line 6: syntax error near unexpected token `('
/greeter.l: line 6: ` (let L (line)'
What can it be that's the problem here?
/Jon
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe