Reading from STDIN is often broken by custom REPL environments that manage 
STDIN on their own, such as Leiningen or an IDE.

Try running from a "bare" REPL (e.g. java -cp ... clojure.main).

-S


On Monday, July 2, 2012 2:51:23 AM UTC-4, Swaroop wrote:
>
> Hi,
>
> This might be a naive question, but calling this code causes a "hung" 
> program for me, I would appreciate any suggestions on the right way to do 
> it:
>
> user=> (dotimes [n 5] (println "Input:") (read-line))
> Input:
>        abc
> Input:
>        def
> # /hangs/
>
> Regards,
> Swaroop
>

-- 
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

Reply via email to