sanket vaidya <sanket.vai...@patni.com> asked: > It would be great if some of you write a simple code which has two > different outputs for $| = 0 & $| = 1 to demonstrate the difference.
Try this with different values for $| #!/usr/bin/perl -w use strict; $| = 1; for ( 1..20 ){ print "."; warn "!" unless $i % 5; sleep 1; } print "\n"; __END__ HTH, Thomas -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/