Hi, I put that into greet.clj. --8<---8<---8<-- (def state (atom :running))
(println "Where to send the greetings?") (while (= @state :running) (let [guy (read-line)] (if (pos? (count guy)) (println (str "Hello, " guy "!")) (reset! state :stop)))) --8<---8<---8<-- And then start the session: --8<---8<---8<-- PS C:\Documents and Settings\tfelad> java -jar clojure-1.2.0.jar greet.clj Where to send the greetings? Gregg Hello, Gregg! Ken Hello, Ken! Meikel Hello, Meikel! --8<---8<---8<-- Just hitting enter after the last greeting shuts down the loop. Is that what you intent? Sincerely Meikel PS: BTW, the above “just worked.” -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en