I am testing a sleep functionality with in a for loop. I used "say" or "print" inside the for/foreach loop what ever you would like to call it.
Interesting thing is with "say" the printing is happening immediately for each element of the list where as for "print" function printing is happening all at once. In other words in below Example 1 for every 1 second it printed the number where as Example 2 printed all its output after 10 seconds.