Sleep command in iterators (silly n00b toy question)

25.times { print “.”; sleep 1 }
print “\n”

But instead of printing a dot, waiting a second, and then printing
another dot, &c. Ruby waits 25 seconds and then prints 25
dots all at
once.

fwiw, it works on winxp running ruby 1.8.

Thanks
Thomas

kind regards -botp

···

Thomas Yager-Madden [mailto:tym@NOSPAMsyntactician.com] wrote: