Currently have problem trying to print a single dot on the screen continuously whenever a subroutine is called but it looks like I can only see those dots when an escape sequence "\n" is placed in the print function or when the script ended.
For example, I wanted to output a dot on the screen every second for 5 seconds but can only see them after 5 seconds.
@time = (1..5); foreach (@time) { print "."; sleep 1; }
In reply to printing without escape sequences "n" by nwkcmk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |