in reply to Re^4: Break perl foreach loop
in thread Break perl foreach loop

Completely correct! STDOUT is by default buffered. There are a lot of ways that this can "fool you". For example I have one .pl program that runs for many hours, but is not very verbose. $>long_prog.pl >somefile. You watch the size of somefile and it's not getting bigger! But yes, it does get "bigger" it just takes awhile for that to show up in the file size results. It can be that the buffer is like 4KB - Mileage varies. If you have a debug or error statement that prints to STDERR, that can fool you when watching the terminal...the time sequence may be off ...a "normal print" to STDOUT may show up on the screen after a print to STDERR even if the "normal print" happened first. I think we are in agreement here. I don't see any issue.