"Robert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have seen in a few scripts now, including some of the articles that Mr. > Schwartz has written. I have read it does something with the buffers but on > a more technical level what is that? > > Robert >
Along with the other explinations, consider an example: [EMAIL PROTECTED] trwww]$ perl use warnings; use strict; foreach my $i ( 1 .. 5 ) { print($i, '...'); sleep( 1 ); } print( "\n" ); $| = 1; sleep( 1 ); foreach my $i ( 1 .. 5 ) { print($i, '...'); sleep( 1 ); } print( "\n" ); ^D 1...2...3...4...5... 1...2...3...4...5... The first line is all printed out at once. The second line prints '1...' then waits a second then prints '2...' and so on. Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>