sanket vaidya <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
