2009/9/10 Philip Potter <philip.g.pot...@gmail.com>: > 2009/9/10 Tariq Doukkali <tariq.doukk...@autoform.de>: >> Hi, >> >> i can not understand, what does this code: >> >> >> $| = 1;
This means the programmer wishes that the buffer will be flushed after every write, or print. Normally (i.e. $| = 0), the computer stores output in a buffer, which is processed, flushed, after its full. Since this might cause messages to not appear at due time ("suffering from buffering"), you may want, or need, to set the autoflush special variable ($|) to true (in Perl, you assign a true value, 1 in this case, to it). > > $| is a special variable. All perl special variables are listed in > perldoc perlvar. See that document for a full explanation. This isn't really helping, sorry. -- Erez "The government forgets that George Orwell's 1984 was a warning, and not a blueprint" http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/