in reply to Re^2: Newline vs Return
in thread Newline vs Return
That works!
In case you were curious about why it works: filehandles are STDOUT is line-buffered by default. This means that when you print, the output is buffered until (1) the buffer fills up or (2) you print a newline. Disabling buffering makes it output right away.
Update: correction as per ikegami's reply
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Newline vs Return
by ikegami (Patriarch) on Oct 07, 2005 at 21:14 UTC | |
by sgifford (Prior) on Oct 07, 2005 at 21:27 UTC |