in reply to Re^3: Break perl foreach loop
in thread Break perl foreach loop
You could try putting a $|=1; statement at top of program. This turns force flushing on. Each print will get flushed to output as it happens.
That won't affect STDERR at all, for two reasons. First, unless STDERR is the currently-selected filehandle, disabling buffering won't affect STDERR at all. Second, STDERR is likely already unbuffered if it's attached to a tty.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Break perl foreach loop
by Marshall (Canon) on Mar 04, 2009 at 17:08 UTC |